commit cb1159f83be61d5c6898d5811c8185ac319b91ee from: Stefan Sperling date: Wed Feb 19 13:41:31 2020 UTC fix misplaced tog search prompt in split-screen views commit - 75f21c89e332a6dc9f91f4382e096e0892bf92e6 commit + cb1159f83be61d5c6898d5811c8185ac319b91ee blob - e6738ac5e9b14ed9d1aa6b41c1f647dbb94ee5a9 blob + 90d27707377ee516e51e508394a8701eb254d8e0 --- tog/tog.c +++ tog/tog.c @@ -702,15 +702,11 @@ view_search_start(struct tog_view *view) const struct got_error *err = NULL; char pattern[1024]; int ret; - int begin_x = 0; if (view->nlines < 1) return NULL; - if (!view_is_parent_view(view)) - begin_x = view_split_begin_x(view->begin_x); - mvwaddstr(view->window, view->begin_y + view->nlines - 1, - begin_x, "/"); + mvwaddstr(view->window, view->begin_y + view->nlines - 1, 0, "/"); wclrtoeol(view->window); nocbreak();