vim-patch:8.1.1932: ml_get errors after append() #10866

Problem:  Ml_get errors after using append(). (Alex Genco)
Solution: Do not update the cursor twice.

d20070274c

fix #10847
This commit is contained in:
Marco Hinz
2019-08-27 23:50:55 +02:00
committed by Justin M. Keyes
parent 17f768ee9e
commit 09cbd6769b
2 changed files with 16 additions and 1 deletions

View File

@@ -592,6 +592,15 @@ func Test_mode()
set complete&
endfunc
func Test_append()
enew!
split
call append(0, ["foo"])
split
only
undo
endfunc
func Test_getbufvar()
let bnr = bufnr('%')
let b:var_num = '1234'