diff options
| author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-12-08 14:05:07 -0500 |
|---|---|---|
| committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-06-03 00:12:01 -0400 |
| commit | 8de5d641691a0d7e29759c5f0fe54875acab124b (patch) | |
| tree | 521a723fd4564407eecc1d8d6e3b25e3c8bd8468 /src/nvim/testdir/test_execute_func.vim | |
| parent | f046f3a2396ea23e53e7307e8c143dc646f5273c (diff) | |
| download | rneovim-8de5d641691a0d7e29759c5f0fe54875acab124b.tar.gz rneovim-8de5d641691a0d7e29759c5f0fe54875acab124b.tar.bz2 rneovim-8de5d641691a0d7e29759c5f0fe54875acab124b.zip | |
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 vim/vim#3669)
https://github.com/vim/vim/commit/10ccaa17ec8b2be1132fd19059e1cd5fb5c902c4
Diffstat (limited to 'src/nvim/testdir/test_execute_func.vim')
| -rw-r--r-- | src/nvim/testdir/test_execute_func.vim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_execute_func.vim b/src/nvim/testdir/test_execute_func.vim index 6f61bede93..e474e0ce36 100644 --- a/src/nvim/testdir/test_execute_func.vim +++ b/src/nvim/testdir/test_execute_func.vim @@ -53,3 +53,15 @@ func Test_execute_list() call assert_equal("", execute([])) call assert_equal("", execute(v:_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 |