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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user