summaryrefslogtreecommitdiff
path: root/src/regexp_nfa.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-06-05 16:54:08 +0200
committerBram Moolenaar <Bram@vim.org>2017-06-05 16:54:08 +0200
commit966e58e413ffa88af8d748e697aa2999571fcd7b (patch)
tree4f62a3029956f9d677337e1fb5ce698260aa739d /src/regexp_nfa.c
parentc5e2b040b490c2f4dd50c945840bc176bfcccb29 (diff)
downloadvim-git-966e58e413ffa88af8d748e697aa2999571fcd7b.tar.gz
patch 8.0.0623: error for invalid regexp is not very informativev8.0.0623
Problem: The message "Invalid range" is used for multiple errors. Solution: Add two more specific error messages. (Itchyny, Ken Hamada)
Diffstat (limited to 'src/regexp_nfa.c')
-rw-r--r--src/regexp_nfa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c
index c490acb71..4e111f169 100644
--- a/src/regexp_nfa.c
+++ b/src/regexp_nfa.c
@@ -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)
{