diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-07-28 21:51:37 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-07-28 21:51:37 +0100 |
commit | a6f9e300161f4cb54713da22f65b261595e8e614 (patch) | |
tree | f0663fef4a680eeaa7826e6f0cb4143aa51c0c3e /src/testdir/test_ins_complete.vim | |
parent | 4e677b9c40ccbc5f090971b31dc2fe07bf05541d (diff) |
patch 9.0.0102: reading past end of line with insert mode completionv9.0.0102
Problem: Reading past end of line with insert mode completion.
Solution: Check text length.
Diffstat (limited to 'src/testdir/test_ins_complete.vim')
-rw-r--r-- | src/testdir/test_ins_complete.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/testdir/test_ins_complete.vim b/src/testdir/test_ins_complete.vim index 35c5785d3a..2b0a2947a0 100644 --- a/src/testdir/test_ins_complete.vim +++ b/src/testdir/test_ins_complete.vim @@ -2142,5 +2142,13 @@ func Test_ins_complete_add() bwipe! endfunc +func Test_ins_complete_end_of_line() + " this was reading past the end of the line + new + norm 8oý + sil! norm o + + bwipe! +endfunc " vim: shiftwidth=2 sts=2 expandtab |