Commit cb1159f83be61d5c6898d5811c8185ac319b91ee

Stefan Sperling 2020-02-19T13:41:31

fix misplaced tog search prompt in split-screen views

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/tog/tog.c b/tog/tog.c
index e6738ac..90d2770 100644
--- a/tog/tog.c
+++ b/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();