mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Keep last valid state on regex errors
This commit is contained in:
parent
cacd576240
commit
ab0c9e5921
9
noice.c
9
noice.c
|
@ -749,8 +749,13 @@ moretyping:
|
|||
/* Check regex errors */
|
||||
if (tmp != NULL)
|
||||
r = setfilter(&re, tmp);
|
||||
if (r != 0 && nowtyping)
|
||||
goto moretyping;
|
||||
if (r != 0)
|
||||
if (nowtyping) {
|
||||
goto moretyping;
|
||||
} else {
|
||||
free(tmp);
|
||||
goto nochange;
|
||||
}
|
||||
/* Copy or reset filter */
|
||||
free(filter);
|
||||
if (tmp != NULL)
|
||||
|
|
Loading…
Reference in a new issue