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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user