diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-02-06 22:52:49 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-02-06 22:52:49 +0100 |
commit | f12519dec88251305793f1651f558d16506b4be2 (patch) | |
tree | 8aadf8dd05eeee8a35273f34b3cff77f2ed91452 /src/testdir/test_undo.vim | |
parent | dd08b6a32b639b8c7a11275e04ae0a7ffc43aed0 (diff) | |
download | vim-git-f12519dec88251305793f1651f558d16506b4be2.tar.gz |
patch 8.0.1475: invalid memory access in read_redo()v8.0.1475
Problem: Invalid memory access in read_redo(). (gy741)
Solution: Convert the replacement character back from a negative number to
CR or NL. (hint by Dominique Pelle, closes #2616)
Diffstat (limited to 'src/testdir/test_undo.vim')
-rw-r--r-- | src/testdir/test_undo.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/testdir/test_undo.vim b/src/testdir/test_undo.vim index cc3cceb1a..c1b821e4e 100644 --- a/src/testdir/test_undo.vim +++ b/src/testdir/test_undo.vim @@ -403,3 +403,10 @@ func Test_undo_0() bwipe! endfunc + +func Test_redo_empty_line() + new + exe "norm\x16r\x160" + exe "norm." + bwipe! +endfunc |