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)
 (HTM) git clone git://git.codemadness.org/sfeed_curses
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit f41bddbceff4853de58af9935d6340fc00145288
 (DIR) parent 19d434197ca3879ac237136066a9c089d6e38524
 (HTM) 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:
         M sfeed_curses.c                      |       4 +---
       
       1 file changed, 1 insertion(+), 3 deletions(-)
       ---
 (DIR) 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') {