aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-08-09 15:14:09 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-08-09 15:32:13 -0400
commit6853690c78c8fcbe0d5d3265cf9badaa7307c7cf (patch)
tree21c3d9944b6f11f81bee6e55c1fb9b879a67221f /src/nvim/testdir
parent4e963f24621a31feb0d27146714b3e00fbcb1676 (diff)
downloadrneovim-6853690c78c8fcbe0d5d3265cf9badaa7307c7cf.tar.gz
rneovim-6853690c78c8fcbe0d5d3265cf9badaa7307c7cf.tar.bz2
rneovim-6853690c78c8fcbe0d5d3265cf9badaa7307c7cf.zip
vim-patch:8.0.1433: illegal memory access after undo
Problem: Illegal memory access after undo. (Dominique Pelle) Solution: Avoid the column becomes negative. (Christian Brabandt, closes vim/vim#2533) https://github.com/vim/vim/commit/95dbcbea6d85a5b79d9617ab3863458fdf0217a0
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_undo.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_undo.vim b/src/nvim/testdir/test_undo.vim
index 38610f8002..3e6e276751 100644
--- a/src/nvim/testdir/test_undo.vim
+++ b/src/nvim/testdir/test_undo.vim
@@ -348,3 +348,12 @@ func Test_redo_empty_line()
exe "norm."
bwipe!
endfunc
+
+" This used to cause an illegal memory access
+func Test_undo_append()
+ new
+ call feedkeys("axx\<Esc>v", 'xt')
+ undo
+ norm o
+ quit
+endfunc