commit 85fbc3608c5e4a2ca0657106c056a784ef712ffe from: Mark Jamsek via: Thomas Adam date: Fri Dec 30 14:58:03 2022 UTC tog: fix typo that breaks log search when in hsplit Ironically, the typo "blocks" log search when in hsplit because we block input on the wrong view! Pass the proper "v" view to nodelay() calls. ok op@ commit - 581fa623effefdc175bc7a74bbb8d30692081705 commit + 85fbc3608c5e4a2ca0657106c056a784ef712ffe blob - 4f9d19c2a2e6171c24ae7b11e06be219013299fe blob + 8912284f8b50da7eefc6e15e048bfca7e52dd1ba --- tog/tog.c +++ tog/tog.c @@ -1313,14 +1313,14 @@ view_search_start(struct tog_view *view) mvwaddstr(v->window, v->nlines - 1, 0, "/"); wclrtoeol(v->window); - nodelay(view->window, FALSE); /* block for search term input */ + nodelay(v->window, FALSE); /* block for search term input */ nocbreak(); echo(); ret = wgetnstr(v->window, pattern, sizeof(pattern)); wrefresh(v->window); cbreak(); noecho(); - nodelay(view->window, TRUE); + nodelay(v->window, TRUE); if (ret == ERR) return NULL;