diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-07-02 13:43:21 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-07-02 13:43:21 +0100 |
commit | c6fdb15d423df22e1776844811d082322475e48a (patch) | |
tree | def7bf00a0c576aae589520523797dbc06c3675d /src/testdir/test_cmdline.vim | |
parent | af043e12d9e5869c597de40b9a2517ae97ac72e7 (diff) |
patch 9.0.0025: accessing beyond allocated memory with the cmdline windowv9.0.0025
Problem: Accessing beyond allocated memory when using the cmdline window in
Ex mode.
Solution: Use "*" instead of "'<,'>" for Visual mode.
Diffstat (limited to 'src/testdir/test_cmdline.vim')
-rw-r--r-- | src/testdir/test_cmdline.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/testdir/test_cmdline.vim b/src/testdir/test_cmdline.vim index 3685336985..f0498a1466 100644 --- a/src/testdir/test_cmdline.vim +++ b/src/testdir/test_cmdline.vim @@ -2103,6 +2103,14 @@ func Test_cmdwin_insert_mode_close() call assert_equal(1, winnr('$')) endfunc +func Test_cmdwin_ex_mode_with_modifier() + " this was accessing memory after allocated text in Ex mode + new + call setline(1, ['some', 'text', 'lines']) + silent! call feedkeys("gQnormal vq:atopleft\<C-V>\<CR>\<CR>", 'xt') + bwipe! +endfunc + " test that ";" works to find a match at the start of the first line func Test_zero_line_search() new |