summaryrefslogtreecommitdiff
path: root/src/regexp_nfa.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/regexp_nfa.c')
-rw-r--r--src/regexp_nfa.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c
index ed8efcfee..4d95f83f1 100644
--- a/src/regexp_nfa.c
+++ b/src/regexp_nfa.c
@@ -1653,8 +1653,11 @@ nfa_regatom(void)
long_u tmp;
if (cur)
+ {
semsg(_(e_regexp_number_after_dot_pos_search),
- no_Magic(c));
+ no_Magic(c));
+ return FAIL;
+ }
tmp = n * 10 + (c - '0');
if (tmp < n)