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.

1e56bda904

Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
zeertzjq
2023-04-15 18:22:44 +08:00
parent 29efd54e02
commit c6ebcd523d
2 changed files with 21 additions and 1 deletions

View File

@@ -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|%
endfunc
" vim: shiftwidth=2 sts=2 expandtab