0
0
mirror of https://github.com/vim/vim.git synced 2025-10-06 05:44:14 -04:00

patch 8.2.2313: Vim9: using uninitialized field when parsing range

Problem:    Vim9: using uninitialized field when parsing range. ":silent!" not
            respected when parsing range fails.
Solution:   Initialize ea.skip.  On pattern failure handle it like an error.
            (closes #7636)
This commit is contained in:
Bram Moolenaar
2021-01-08 20:40:45 +01:00
parent 467b59c2eb
commit ece0b87c0f
3 changed files with 11 additions and 1 deletions

View File

@@ -661,6 +661,12 @@ def Test_range_after_command_modifier()
bwipe!
enddef
def Test_silent_pattern()
new
silent! :/pat/put _
bwipe!
enddef
def Test_eval_command()
var from = 3
var to = 5