summaryrefslogtreecommitdiff
path: root/src/testdir/test_undo.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-01-27 21:01:34 +0100
committerBram Moolenaar <Bram@vim.org>2018-01-27 21:01:34 +0100
commit95dbcbea6d85a5b79d9617ab3863458fdf0217a0 (patch)
tree865904c3b8a00001192b1b3f870a9c2b01304063 /src/testdir/test_undo.vim
parent2ec364e94dbc080ccdf6c5dfc6f1653b5b7ded64 (diff)
downloadvim-git-95dbcbea6d85a5b79d9617ab3863458fdf0217a0.tar.gz
patch 8.0.1433: illegal memory access after undov8.0.1433
Problem: Illegal memory access after undo. (Dominique Pelle) Solution: Avoid the column becomes negative. (Christian Brabandt, closes #2533)
Diffstat (limited to 'src/testdir/test_undo.vim')
-rw-r--r--src/testdir/test_undo.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/testdir/test_undo.vim b/src/testdir/test_undo.vim
index 30164a6df..b7235867b 100644
--- a/src/testdir/test_undo.vim
+++ b/src/testdir/test_undo.vim
@@ -350,3 +350,12 @@ func Test_cmd_in_reg_undo()
only!
let @a=''
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