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:
zeertzjq
2022-08-28 07:22:27 +08:00
committed by GitHub
parent 09c6ce8c4e
commit 7a9b593796
4 changed files with 15 additions and 6 deletions

View File

@@ -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;