diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-01-08 20:40:45 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-01-08 20:40:45 +0100 |
commit | ece0b87c0fb0e35ff4c51f9ba81389f56428e42b (patch) | |
tree | 1e00375a149658cd077d0ce04d0faa90d6838805 /src/testdir/test_vim9_cmd.vim | |
parent | 467b59c2eb06f7fe6c2b5b677855cd422adbc45c (diff) | |
download | vim-git-ece0b87c0fb0e35ff4c51f9ba81389f56428e42b.tar.gz |
patch 8.2.2313: Vim9: using uninitialized field when parsing rangev8.2.2313
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)
Diffstat (limited to 'src/testdir/test_vim9_cmd.vim')
-rw-r--r-- | src/testdir/test_vim9_cmd.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_cmd.vim b/src/testdir/test_vim9_cmd.vim index 5b84fecee..f5cb1c873 100644 --- a/src/testdir/test_vim9_cmd.vim +++ b/src/testdir/test_vim9_cmd.vim @@ -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 |