aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-02-11 13:46:35 +0100
committerJustin M. Keyes <justinkz@gmail.com>2018-02-11 19:03:27 +0100
commitabed6a0b1a71e54b143e98678f4daa6818b02f8d (patch)
treefed29c0808a3b0fe88d1e5c41f00b4d270b42554 /src/nvim/testdir
parent4b7f7be3018563905d55197b43707ebe4ca12e78 (diff)
downloadrneovim-abed6a0b1a71e54b143e98678f4daa6818b02f8d.tar.gz
rneovim-abed6a0b1a71e54b143e98678f4daa6818b02f8d.tar.bz2
rneovim-abed6a0b1a71e54b143e98678f4daa6818b02f8d.zip
vim-patch:8.0.1475: invalid memory access in read_redo()
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 vim/vim#2616) https://github.com/vim/vim/commit/f12519dec88251305793f1651f558d16506b4be2
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_undo.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_undo.vim b/src/nvim/testdir/test_undo.vim
index f7d1d64ea3..3373258708 100644
--- a/src/nvim/testdir/test_undo.vim
+++ b/src/nvim/testdir/test_undo.vim
@@ -282,3 +282,10 @@ func Test_cmd_in_reg_undo()
only!
let @a=''
endfunc
+
+func Test_redo_empty_line()
+ new
+ exe "norm\x16r\x160"
+ exe "norm."
+ bwipe!
+endfunc