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 -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20211215122854.CBA681C214B%40moolenaar.net.

Raspunde prin e-mail lui