1
0
forked from aniani/vim

patch 8.1.0569: execute() always resets display column to zero

Problem:    Execute() always resets display column to zero. (Sha Liu)
Solution:   Don't reset it to zero, restore the previous value. (closes #3669)
This commit is contained in:
Bram Moolenaar
2018-12-07 16:38:23 +01:00
parent 9a8534673a
commit 10ccaa17ec
3 changed files with 19 additions and 3 deletions

View File

@@ -49,3 +49,15 @@ func Test_execute_list()
call assert_equal("", execute([]))
call assert_equal("", execute(test_null_list()))
endfunc
func Test_execute_does_not_change_col()
echo ''
echon 'abcd'
let x = execute('silent echo 234343')
echon 'xyz'
let text = ''
for col in range(1, 7)
let text .= nr2char(screenchar(&lines, col))
endfor
call assert_equal('abcdxyz', text)
endfunc