mirror of
https://github.com/jarun/nnn.git
synced 2025-02-26 03:01:32 +00:00
Keep last valid state on regex errors
This commit is contained in:
parent
cacd576240
commit
ab0c9e5921
1 changed files with 7 additions and 2 deletions
9
noice.c
9
noice.c
|
@ -749,8 +749,13 @@ moretyping:
|
||||||
/* Check regex errors */
|
/* Check regex errors */
|
||||||
if (tmp != NULL)
|
if (tmp != NULL)
|
||||||
r = setfilter(&re, tmp);
|
r = setfilter(&re, tmp);
|
||||||
if (r != 0 && nowtyping)
|
if (r != 0)
|
||||||
goto moretyping;
|
if (nowtyping) {
|
||||||
|
goto moretyping;
|
||||||
|
} else {
|
||||||
|
free(tmp);
|
||||||
|
goto nochange;
|
||||||
|
}
|
||||||
/* Copy or reset filter */
|
/* Copy or reset filter */
|
||||||
free(filter);
|
free(filter);
|
||||||
if (tmp != NULL)
|
if (tmp != NULL)
|
||||||
|
|
Loading…
Add table
Reference in a new issue