mirror of
https://github.com/neovim/neovim.git
synced 2024-09-17 20:58:20 -04:00
vim-patch:8.2.4592: search continues after giving E1204
Problem: Search continues after giving E1204.
Solution: Return failure after giving E1204. (closes vim/vim#9972)
b10ff5c1b3
This commit is contained in:
parent
b2819eec26
commit
465f8ff8cb
@ -1651,6 +1651,7 @@ static int nfa_regatom(void)
|
||||
while (ascii_isdigit(c)) {
|
||||
if (cur) {
|
||||
semsg(_(e_regexp_number_after_dot_pos_search), no_Magic(c));
|
||||
return FAIL;
|
||||
}
|
||||
if (n > (INT32_MAX - (c - '0')) / 10) {
|
||||
// overflow.
|
||||
|
Loading…
Reference in New Issue
Block a user