|
|
allow to spawn the search prompt, even if there is nothing to search for - sfeed_curses - sfeed curses UI (now part of sfeed, development is in sfeed) |
|
|
 |
git clone git://git.codemadness.org/sfeed_curses (git://git.codemadness.org) |
|
|
 |
Log |
|
|
 |
Files |
|
|
 |
Refs |
|
|
 |
README |
|
|
 |
LICENSE |
|
|
|
--- |
|
|
 |
commit f41bddbceff4853de58af9935d6340fc00145288 |
|
|
 |
parent 19d434197ca3879ac237136066a9c089d6e38524 |
|
|
 |
Author: Hiltjo Posthuma <hiltjo@codemadness.org> (mailto://) |
application/vnd.lotus-organizer |
|
|
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: |
|
|
|
M sfeed_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') { |
|