Error message from :cc

11 views
Skip to first unread message

Gary Johnson

unread,
Dec 15, 2021, 2:10:28 AM12/15/21
to vim...@googlegroups.com
I recently discovered that the error message from :cc when the
quickfix list is empty is

E16: Invalid range

The :cc was among some other commands in a mapping, so it took me
a while to figure out what was happening.

This is not a big deal, but it would be nice if the message said
something more useful and indicative of the problem.

Regards,
Gary

Bram Moolenaar

unread,
Dec 15, 2021, 7:29:00 AM12/15/21
to vim...@googlegroups.com, Gary Johnson
I agree. If you know that the default range isn't set because there is
no error list it is understandable, but otherwise the user will be
puzzled.

--
hundred-and-one symptoms of being an internet addict:
36. You miss more than five meals a week downloading the latest games from
Apogee.

/// Bram Moolenaar -- Br...@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 ///
Reply all
Reply to author
Forward
0 new messages