Fix MaySet detection for Lua following Neovim update (#195)

With version v0.10.0 of Neovim, the `:verbose` output added
"(run Nvim with -V1 for more details)" to the previous message,
which was simply "Last set from Lua".
This commit is contained in:
Victor Schneuwly
2024-06-08 16:27:52 +00:00
committed by GitHub
parent 3e878abfd6
commit 0ce2d843d6

View File

@@ -26,7 +26,7 @@ function! s:MaySet(option) abort
silent verbose execute 'setglobal all' a:option . '?' silent verbose execute 'setglobal all' a:option . '?'
redir END redir END
endif endif
return out !~# " \\(\\~[\\/][^\n]*\\|Lua\\)$" return out !~# " \\(\\~[\\/]\\|Lua\\)[^\n]*$"
endfunction endfunction
if s:MaySet('backspace') if s:MaySet('backspace')