0
0
mirror of https://github.com/vim/vim.git synced 2025-10-28 09:27:14 -04:00

patch 8.2.4365: sticky command modifiers are too sticky

Problem:    sticky command modifiers are too sticky.
Solution:   Do not apply command modifiers to a called function. (closes #9751)
This commit is contained in:
Bram Moolenaar
2022-02-12 22:13:06 +00:00
parent 4549166078
commit cdf0485969
3 changed files with 23 additions and 0 deletions

View File

@@ -118,6 +118,20 @@ def Test_cmdmod_execute()
END
v9.CheckScriptSuccess(lines)
delete('Xvim9import.vim')
# "legacy" does not aply to a called function
lines =<< trim END
vim9script
def g:TheFunc()
if exists('something')
echo 'yes'
endif
enddef
legacy exe 'call g:TheFunc()'
END
v9.CheckScriptSuccess(lines)
delfunc g:TheFunc
enddef
def Test_edit_wildcards()