diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-07-02 09:52:05 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2022-07-02 11:57:53 +0800 |
| commit | d197e77a55586efff17a555fa92a01a4fad784af (patch) | |
| tree | 0068895b398940ab4e16f0fdd5f700b12552a126 /src/nvim/testdir/test_normal.vim | |
| parent | f71d518c90b46dd7c53d151a59ff9a5236589f64 (diff) | |
| download | rneovim-d197e77a55586efff17a555fa92a01a4fad784af.tar.gz rneovim-d197e77a55586efff17a555fa92a01a4fad784af.tar.bz2 rneovim-d197e77a55586efff17a555fa92a01a4fad784af.zip | |
vim-patch:8.2.0261: some code not covered by tests
Problem: Some code not covered by tests.
Solution: Add test cases. (Yegappan Lakshmanan, closes vim/vim#5645)
https://github.com/vim/vim/commit/f0cee1971f5258ce61f8a4e6a04d35c1e625bb01
Cherry-pick Test_bunload_with_offset() from patch 8.2.0243
Diffstat (limited to 'src/nvim/testdir/test_normal.vim')
| -rw-r--r-- | src/nvim/testdir/test_normal.vim | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_normal.vim b/src/nvim/testdir/test_normal.vim index d1cb89bbd4..b44d65c2a4 100644 --- a/src/nvim/testdir/test_normal.vim +++ b/src/nvim/testdir/test_normal.vim @@ -2748,6 +2748,23 @@ func Test_normal_gk() set cpoptions& number& numberwidth& endfunc +" Test for cursor movement with '-' in 'cpoptions' +func Test_normal_cpo_minus() + throw 'Skipped: Nvim does not support cpoptions flag "-"' + new + call setline(1, ['foo', 'bar', 'baz']) + let save_cpo = &cpo + set cpo+=- + call assert_beeps('normal 10j') + call assert_equal(1, line('.')) + normal G + call assert_beeps('normal 10k') + call assert_equal(3, line('.')) + call assert_fails(10, 'E16:') + let &cpo = save_cpo + close! +endfunc + " Some commands like yy, cc, dd, >>, << and !! accept a count after " typing the first letter of the command. func Test_normal_count_after_operator() |