Closed kyllingstad closed 5 months ago
I edited the description of this issue because it turned out that much of what I described was specific to my particular .vimrc
setup. But the main issue still stands, I think.
It looks like this was added to b:undo_ftplugin
in https://github.com/JuliaEditorSupport/julia-vim/commit/7b71f094d467aa8960d31ec988ccdd2d817a2d12 before the author was probably aware of b:undo_indent
.
Fixed in e36d07fa32194225be47af324456a729eebd2f7e (sorry about the wrong issue ref in the commit message, a cut&paste went wrong) Thanks for reporting this
@carlobaldassi can you send an update to Vim so we can fix https://github.com/vim/vim/issues/14419 there as well?
The
b:undo_ftplugin
variable defined inftplugin/julia.vim
resets indentation options likeindentexpr
. It shouldn't, because that script does not set those options, and therefore its undo action should not reset them.These options should only be reset by the actions of
b:undo_indent
defined inindent/julia.vim
(and they correctly are).