To: vim_dev@googlegroups.com Subject: Patch 8.2.3813 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.3813 Problem: confusing error when using :cc without error list. (Gary Johnson) Solution: Give the "no errors" error. Files: src/ex_docmd.c, src/testdir/test_quickfix.vim *** ../vim-8.2.3812/src/ex_docmd.c 2021-12-13 13:11:00.692262343 +0000 --- src/ex_docmd.c 2021-12-15 12:15:15.832360214 +0000 *************** *** 4633,4639 **** --- 4633,4643 ---- #ifdef FEAT_QUICKFIX // No error for value that is too big, will use the last entry. if (eap->line2 <= 0) + { + if (eap->addr_count == 0) + return _(e_no_errors); return _(e_invalid_range); + } #endif break; case ADDR_QUICKFIX_VALID: *** ../vim-8.2.3812/src/testdir/test_quickfix.vim 2021-12-12 20:07:58.724337327 +0000 --- src/testdir/test_quickfix.vim 2021-12-15 12:26:16.191517610 +0000 *************** *** 86,91 **** --- 86,97 ---- 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) *** ../vim-8.2.3812/src/version.c 2021-12-15 12:06:39.572632221 +0000 --- src/version.c 2021-12-15 12:16:44.692286453 +0000 *************** *** 751,752 **** --- 751,754 ---- { /* Add new patch number below this line */ + /**/ + 3813, /**/ -- hundred-and-one symptoms of being an internet addict: 37. You start looking for hot HTML addresses in public restrooms. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///