diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2019-06-03 22:56:43 +0200 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2019-06-03 22:56:43 +0200 |
| commit | 49733df939b7c47739069581d5d2ae9d891eb4a8 (patch) | |
| tree | 2246efdc9b3ca66346d2182ffa3866914fbee999 /src/nvim/testdir | |
| parent | dc4fa0b24dd65a72f66e853e9f5eb42a2e1973ff (diff) | |
| parent | 559401ebe57340fc7fa48ae7dffdf4fa9ddaa6d1 (diff) | |
| download | rneovim-49733df939b7c47739069581d5d2ae9d891eb4a8.tar.gz rneovim-49733df939b7c47739069581d5d2ae9d891eb4a8.tar.bz2 rneovim-49733df939b7c47739069581d5d2ae9d891eb4a8.zip | |
Merge #9338 'vim-patch:8.1.{569,571}'
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/setup.vim | 1 | ||||
| -rw-r--r-- | src/nvim/testdir/test_execute_func.vim | 29 |
2 files changed, 30 insertions, 0 deletions
diff --git a/src/nvim/testdir/setup.vim b/src/nvim/testdir/setup.vim index 011433f19e..c75b00d5de 100644 --- a/src/nvim/testdir/setup.vim +++ b/src/nvim/testdir/setup.vim @@ -16,6 +16,7 @@ set nohidden smarttab noautoindent noautoread complete-=i noruler noshowcmd set listchars=eol:$ set fillchars=vert:\|,fold:- set shortmess-=F +set laststatus=1 " Prevent Nvim log from writing to stderr. let $NVIM_LOG_FILE = exists($NVIM_LOG_FILE) ? $NVIM_LOG_FILE : 'Xnvim.log' diff --git a/src/nvim/testdir/test_execute_func.vim b/src/nvim/testdir/test_execute_func.vim index 6f61bede93..eb84a6739d 100644 --- a/src/nvim/testdir/test_execute_func.vim +++ b/src/nvim/testdir/test_execute_func.vim @@ -53,3 +53,32 @@ 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 + +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 |