diff options
author | Bram Moolenaar <Bram@vim.org> | 2023-03-04 14:13:10 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-03-04 14:13:10 +0000 |
commit | c99cbf8f289bdda5d4a77d7ec415850a520330ba (patch) | |
tree | d2e538394cb7a8a7c42a4aac6ccf1a8e3256999b /src/testdir | |
parent | 5c6a3c9bad67c2ce766f55dbecb3461f14833a42 (diff) |
patch 9.0.1378: illegal memory access when using virtual editingv9.0.1378
Problem: Illegal memory access when using virtual editing.
Solution: Make sure "startspaces" is not negative.
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_virtualedit.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/testdir/test_virtualedit.vim b/src/testdir/test_virtualedit.vim index 71cea427ba..edaae67860 100644 --- a/src/testdir/test_virtualedit.vim +++ b/src/testdir/test_virtualedit.vim @@ -88,6 +88,16 @@ func Test_edit_change() set virtualedit= endfunc +func Test_edit_special_char() + new + se ve=all + norm a0 + sil! exe "norm o00000\<Nul>k<a0s" + + bwipe! + set virtualedit= +endfunc + " Tests for pasting at the beginning, end and middle of a tab character " in virtual edit mode. func Test_paste_in_tab() |