diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-08-28 07:22:27 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-28 07:22:27 +0800 |
commit | 7a9b5937966d3db852c84b8eb232e77d92d3c355 (patch) | |
tree | 1ab737cf0e4efccd6729421813e7f9c8c38420ac /src/nvim/testdir | |
parent | 09c6ce8c4e4c6415cca9b834539ed0df461373f6 (diff) | |
download | rneovim-7a9b5937966d3db852c84b8eb232e77d92d3c355.tar.gz rneovim-7a9b5937966d3db852c84b8eb232e77d92d3c355.tar.bz2 rneovim-7a9b5937966d3db852c84b8eb232e77d92d3c355.zip |
vim-patch:8.2.3813: confusing error when using :cc without error list (#19978)
Problem: confusing error when using :cc without error list. (Gary Johnson)
Solution: Give the "no errors" error.
https://github.com/vim/vim/commit/a5d78d1f1123d9ffccd5ba58f2d2dec44cc59e94
Cherry-pick e_quickfix -> e_no_errors rename from patch 8.2.3190.
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r-- | src/nvim/testdir/test_quickfix.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_quickfix.vim b/src/nvim/testdir/test_quickfix.vim index f6d573d76b..8c9e39570f 100644 --- a/src/nvim/testdir/test_quickfix.vim +++ b/src/nvim/testdir/test_quickfix.vim @@ -85,6 +85,12 @@ func s:setup_commands(cchar) endif endfunc +" This must be run before any error lists are created. +func Test_AA_cc_no_errors() + call assert_fails('cc', 'E42:') + call assert_fails('ll', 'E42:') +endfunc + " Tests for the :clist and :llist commands func XlistTests(cchar) call s:setup_commands(a:cchar) |