Commit cc5bac6611e9a2b1a911d4a98ba7d1b2a4eb7d4c

Stefan Sperling 2018-10-22T22:33:29

revert previous; didn't fix the issue

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tog/tog.c b/tog/tog.c
index 0e1562e..00b4e68 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -487,7 +487,7 @@ view_input(struct tog_view **new, struct tog_view **dead,
 	errcode = pthread_mutex_unlock(&tog_mutex);
 	if (errcode)
 		return got_error_set_errno(errcode);
-	ch = getch();
+	ch = wgetch(view->window);
 	errcode = pthread_mutex_lock(&tog_mutex);
 	if (errcode)
 		return got_error_set_errno(errcode);