mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 17:28:23 +00:00
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.
a5d78d1f11
Cherry-pick e_quickfix -> e_no_errors rename from patch 8.2.3190.
This commit is contained in:
@@ -3586,6 +3586,9 @@ char *invalid_range(exarg_T *eap)
|
||||
assert(eap->line2 >= 0);
|
||||
// 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_invrange);
|
||||
}
|
||||
break;
|
||||
|
Reference in New Issue
Block a user