diff options
Diffstat (limited to 'src/cmdhist.c')
-rw-r--r-- | src/cmdhist.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cmdhist.c b/src/cmdhist.c index d398ca7a68..96a9b3e95b 100644 --- a/src/cmdhist.c +++ b/src/cmdhist.c @@ -742,7 +742,10 @@ ex_history(exarg_T *eap) end = arg; if (!get_list_range(&end, &hisidx1, &hisidx2) || *end != NUL) { - semsg(_(e_trailing_characters_str), end); + if (*end != NUL) + semsg(_(e_trailing_characters_str), end); + else + semsg(_(e_val_too_large), arg); return; } |