summaryrefslogtreecommitdiff
path: root/src/testdir/test_undo.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-02-06 22:52:49 +0100
committerBram Moolenaar <Bram@vim.org>2018-02-06 22:52:49 +0100
commitf12519dec88251305793f1651f558d16506b4be2 (patch)
tree8aadf8dd05eeee8a35273f34b3cff77f2ed91452 /src/testdir/test_undo.vim
parentdd08b6a32b639b8c7a11275e04ae0a7ffc43aed0 (diff)
downloadvim-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.vim7
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