diff options
| author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-12-09 08:33:11 -0500 |
|---|---|---|
| committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-06-03 00:12:01 -0400 |
| commit | 7443da6f6e819cbe0c4432a44a596de54c64b3d8 (patch) | |
| tree | efe9c084612e2fcce82287bddbf60c5a0fa82d82 /src/nvim/testdir/test_execute_func.vim | |
| parent | 8de5d641691a0d7e29759c5f0fe54875acab124b (diff) | |
| download | rneovim-7443da6f6e819cbe0c4432a44a596de54c64b3d8.tar.gz rneovim-7443da6f6e819cbe0c4432a44a596de54c64b3d8.tar.bz2 rneovim-7443da6f6e819cbe0c4432a44a596de54c64b3d8.zip | |
vim-patch:8.1.0571: non-silent execute() resets display column to zero
Problem: Non-silent execute() resets display column to zero.
Solution: Keep the display column as-is.
https://github.com/vim/vim/commit/446e7a3cd36b2de7d559f167eb5795d1e1cd3ddb
Diffstat (limited to 'src/nvim/testdir/test_execute_func.vim')
| -rw-r--r-- | src/nvim/testdir/test_execute_func.vim | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_execute_func.vim b/src/nvim/testdir/test_execute_func.vim index e474e0ce36..eb84a6739d 100644 --- a/src/nvim/testdir/test_execute_func.vim +++ b/src/nvim/testdir/test_execute_func.vim @@ -65,3 +65,20 @@ func Test_execute_does_not_change_col() endfor call assert_equal('abcdxyz', text) endfunc + +func Test_execute_not_silent() + echo '' + echon 'abcd' + let x = execute('echon 234', '') + echo 'xyz' + let text1 = '' + for col in range(1, 8) + let text1 .= nr2char(screenchar(&lines - 1, col)) + endfor + call assert_equal('abcd234 ', text1) + let text2 = '' + for col in range(1, 4) + let text2 .= nr2char(screenchar(&lines, col)) + endfor + call assert_equal('xyz ', text2) +endfunc |