diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-04-15 18:22:44 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-04-15 19:01:24 +0800 |
commit | c6ebcd523dc91c8b1d52a8c9a61aca3d3a59250b (patch) | |
tree | 44d51cee54728f4b7c979b712a1ca6d0b3625d70 /test/old/testdir/test_eval_stuff.vim | |
parent | 29efd54e0284727a7dde5608e5eedaef9c00c65f (diff) | |
download | rneovim-c6ebcd523dc91c8b1d52a8c9a61aca3d3a59250b.tar.gz rneovim-c6ebcd523dc91c8b1d52a8c9a61aca3d3a59250b.tar.bz2 rneovim-c6ebcd523dc91c8b1d52a8c9a61aca3d3a59250b.zip |
vim-patch:9.0.0104: going beyond allocated memory when evaluating string constant
Problem: Going beyond allocated memory when evaluating string constant.
Solution: Properly skip over <Key> form.
https://github.com/vim/vim/commit/1e56bda9048a9625bce6e660938c834c5c15b07d
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'test/old/testdir/test_eval_stuff.vim')
-rw-r--r-- | test/old/testdir/test_eval_stuff.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/old/testdir/test_eval_stuff.vim b/test/old/testdir/test_eval_stuff.vim index 90e3942c4d..7acc91c17b 100644 --- a/test/old/testdir/test_eval_stuff.vim +++ b/test/old/testdir/test_eval_stuff.vim @@ -407,4 +407,9 @@ func Test_modified_char_no_escape_special() nunmap <M-…> endfunc +func Test_eval_string_in_special_key() + " this was using the '{' inside <> as the start of an interpolated string + silent! echo 0{1-$"\<S--{>n|nö% +endfunc + " vim: shiftwidth=2 sts=2 expandtab |