1
0
forked from aniani/vim

patch 8.0.0623: error for invalid regexp is not very informative

Problem:    The message "Invalid range" is used for multiple errors.
Solution:   Add two more specific error messages. (Itchyny, Ken Hamada)
This commit is contained in:
Bram Moolenaar
2017-06-05 16:54:08 +02:00
parent c5e2b040b4
commit 966e58e413
4 changed files with 25 additions and 4 deletions

View File

@@ -1853,7 +1853,7 @@ collection:
endc = startc;
startc = oldstartc;
if (startc > endc)
EMSG_RET_FAIL(_(e_invrange));
EMSG_RET_FAIL(_(e_reverse_range));
if (endc > startc + 2)
{