mirror of
https://github.com/neovim/neovim.git
synced 2025-10-06 01:46:29 +00: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:
@@ -1651,6 +1651,7 @@ static int nfa_regatom(void)
|
|||||||
while (ascii_isdigit(c)) {
|
while (ascii_isdigit(c)) {
|
||||||
if (cur) {
|
if (cur) {
|
||||||
semsg(_(e_regexp_number_after_dot_pos_search), no_Magic(c));
|
semsg(_(e_regexp_number_after_dot_pos_search), no_Magic(c));
|
||||||
|
return FAIL;
|
||||||
}
|
}
|
||||||
if (n > (INT32_MAX - (c - '0')) / 10) {
|
if (n > (INT32_MAX - (c - '0')) / 10) {
|
||||||
// overflow.
|
// overflow.
|
||||||
|
Reference in New Issue
Block a user