0
0
mirror of https://github.com/vim/vim.git synced 2025-10-03 05:14:07 -04:00

patch 8.1.1932: ml_get errors after using append()

Problem:    Ml_get errors after using append(). (Alex Genco)
Solution:   Do not update the cursor twice. (closes #1737)
This commit is contained in:
Bram Moolenaar
2019-08-27 21:56:06 +02:00
parent ea7a08a53e
commit d20070274c
3 changed files with 18 additions and 1 deletions

View File

@@ -705,6 +705,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'