Hi, this is a trivial bug which made it hard to diagnose an unrelated problem
let g:sh_fold_enable=7
Ignoring g:sh_fold_enabled=0; need to re-compile vim for +fold support
I would expect to see
Ignoring g:sh_fold_enabled=7; need to re-compile vim for +fold support
Note the value of g:sh_fold_enabled is cleared (reset to zero) in syntax/sh.vim prior to displaying the error message.
if !exists("g:sh_fold_enabled")
let g:sh_fold_enabled= 0
elseif g:sh_fold_enabled != 0 && !has("folding")
let g:sh_fold_enabled= 0
echomsg "Ignoring g:sh_fold_enabled=".g:sh_fold_enabled."; need to re-compile vim for +fold support"
endif
master - 9.0 patch level 49
Operating system independent.
No response
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
The relevant code does not appear to have changed in the latest source code at the moment (e5297e3).
I think it would be fine to initialize the variable(g:sh_fold_enabled) after echomsg, but what do you think?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
makes sense, yes
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Closed #10701 as completed via 152a450.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()