1
0
forked from aniani/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 #2533)
This commit is contained in:
Bram Moolenaar
2018-01-27 21:01:34 +01:00
parent 2ec364e94d
commit 95dbcbea6d
3 changed files with 16 additions and 1 deletions

View File

@@ -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