diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-07-02 12:25:07 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-02 12:25:07 +0800 |
| commit | a9de89894a2ff43dd511b38f20ab2815d6c7e2bd (patch) | |
| tree | 8c6da1a08e4bb88f876e93bb6fc6d24461cff93e /src/nvim/testdir/test_normal.vim | |
| parent | f71d518c90b46dd7c53d151a59ff9a5236589f64 (diff) | |
| parent | 727754377281aa442767c0ad9c25fec7dd2533ab (diff) | |
| download | rneovim-a9de89894a2ff43dd511b38f20ab2815d6c7e2bd.tar.gz rneovim-a9de89894a2ff43dd511b38f20ab2815d6c7e2bd.tar.bz2 rneovim-a9de89894a2ff43dd511b38f20ab2815d6c7e2bd.zip | |
Merge pull request #19202 from zeertzjq/vim-8.2.0316
vim-patch:8.2.{0261,0316}: insufficient test coverage
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() |