diff src/regexp_nfa.c @ 11480:99ce30ac4226 v8.0.0623

patch 8.0.0623: error for invalid regexp is not very informative commit https://github.com/vim/vim/commit/966e58e413ffa88af8d748e697aa2999571fcd7b Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jun 5 16:54:08 2017 +0200 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)
author Christian Brabandt <cb@256bit.org>
date Mon, 05 Jun 2017 17:00:03 +0200
parents 0ade9dd85156
children 578df034735d
line wrap: on
line diff
--- 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)
 			{