diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-06-04 08:40:54 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-06-04 08:44:19 -0400 |
commit | 21aa4bc428e439e7132474aee646552c9b0d6b63 (patch) | |
tree | a2632436414a1b32396155c8cf96365e641d0021 /src/nvim/regexp_nfa.c | |
parent | fe5c891fe05b7974c9a7c9048b81e788f1143eb1 (diff) | |
download | rneovim-21aa4bc428e439e7132474aee646552c9b0d6b63.tar.gz rneovim-21aa4bc428e439e7132474aee646552c9b0d6b63.tar.bz2 rneovim-21aa4bc428e439e7132474aee646552c9b0d6b63.zip |
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)
https://github.com/vim/vim/commit/966e58e413ffa88af8d748e697aa2999571fcd7b
Diffstat (limited to 'src/nvim/regexp_nfa.c')
-rw-r--r-- | src/nvim/regexp_nfa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/regexp_nfa.c b/src/nvim/regexp_nfa.c index 0b8e979ca2..3e4a32b178 100644 --- a/src/nvim/regexp_nfa.c +++ b/src/nvim/regexp_nfa.c @@ -1712,7 +1712,7 @@ collection: endc = startc; startc = oldstartc; if (startc > endc) - EMSG_RET_FAIL(_(e_invrange)); + EMSG_RET_FAIL(_(e_reverse_range)); if (endc > startc + 2) { /* Emit a range instead of the sequence of |