1
1
mirror of https://github.com/jarun/nnn.git synced 2024-09-21 09:57:55 +03:00

Let filter errors show up in status line

This commit is contained in:
lostd 2014-10-10 15:13:13 +03:00
parent f30e02239e
commit de7072bdd5

View File

@ -530,6 +530,7 @@ nochange:
goto nochange; goto nochange;
case SEL_FLTR: case SEL_FLTR:
/* Read filter */ /* Read filter */
printmsg("");
move(LINES - 1, 0); move(LINES - 1, 0);
printw("filter: "); printw("filter: ");
tmp = readln(); tmp = readln();
@ -540,7 +541,6 @@ nochange:
r = setfilter(&re, tmp); r = setfilter(&re, tmp);
if (r != 0) { if (r != 0) {
free(tmp); free(tmp);
printmsg("");
goto nochange; goto nochange;
} }
free(filter); free(filter);