diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-07-13 21:14:08 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2022-07-14 15:40:07 +0800 |
| commit | c467df997eadc077003ff27908c0782b27ff6b97 (patch) | |
| tree | 80ae52cd3b6dcb90c5239b37a1fa27ceaf19f9aa /src/nvim/testdir/test_ex_mode.vim | |
| parent | b81d1eb26502f403574113385a75444f8880828e (diff) | |
| download | rneovim-c467df997eadc077003ff27908c0782b27ff6b97.tar.gz rneovim-c467df997eadc077003ff27908c0782b27ff6b97.tar.bz2 rneovim-c467df997eadc077003ff27908c0782b27ff6b97.zip | |
vim-patch:8.2.0342: some code in ex_getln.c not covered by tests
Problem: Some code in ex_getln.c not covered by tests.
Solution: Add more tests. (Yegappan Lakshmanan, closes vim/vim#5717)
https://github.com/vim/vim/commit/0546d7df13b041833121b2d56036e1c62ea3b0c1
Nvim doesn't support imsearch=2, commenting out that line is enough.
Test_Ex_append() is not applicable to Vim enhanced Ex mode.
Omit test_iminsert.vim as previous patches to that file are N/A.
Diffstat (limited to 'src/nvim/testdir/test_ex_mode.vim')
| -rw-r--r-- | src/nvim/testdir/test_ex_mode.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_ex_mode.vim b/src/nvim/testdir/test_ex_mode.vim index 2b8c5bebea..8a8203b40b 100644 --- a/src/nvim/testdir/test_ex_mode.vim +++ b/src/nvim/testdir/test_ex_mode.vim @@ -141,6 +141,16 @@ func Test_Ex_escape_enter() call assert_equal("a\rb", l) endfunc +" Test for :append! command in Ex mode +func Test_Ex_append() + throw 'Skipped: Nvim only supports Vim Ex mode' + new + call setline(1, "\t abc") + call feedkeys("Qappend!\npqr\nxyz\n.\nvisual\n", 'xt') + call assert_equal(["\t abc", "\t pqr", "\t xyz"], getline(1, '$')) + close! +endfunc + func Test_ex_mode_errors() " Not allowed to enter ex mode when text is locked au InsertCharPre <buffer> normal! gQ<CR> |