sfeed_curses

sfeed curses UI
git clone git://git.codemadness.org/sfeed_curses
Log | Files | Refs | README | LICENSE

commit f41bddbceff4853de58af9935d6340fc00145288
parent 19d434197ca3879ac237136066a9c089d6e38524
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Wed, 10 Mar 2021 19:24:25 +0100

allow to spawn the search prompt, even if there is nothing to search for

... and it will never find anything.

Diffstat:
Msfeed_curses.c | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sfeed_curses.c b/sfeed_curses.c @@ -2062,8 +2062,6 @@ nextpage: case 'n': /* search again (forward) */ case 'N': /* search again (backward) */ p = &panes[selpane]; - if (!p->nrows) - break; /* prompt for new input */ if (ch == '?' || ch == '/') { @@ -2073,7 +2071,7 @@ nextpage: "Search (%s):", tmp); statusbar.dirty = 1; } - if (!search) + if (!search || !p->nrows) break; if (ch == '/' || ch == 'n') {