Commit Diff


commit - 925e6f230ee6e0403012bf610faf83e908b7b087
commit + f71823372787764c1a09b0b2a3515dd41b077f2d
blob - e25023494ac147c30bffdcb1caead539b82cc7f8
blob + 312fb7bb91121eebf0c8a63d05b7268dfe15b324
--- tog/tog.c
+++ tog/tog.c
@@ -623,6 +623,7 @@ show_log_view(struct got_object_id *start_id, struct g
 
 		nodelay(stdscr, FALSE);
 		ch = wgetch(tog_log_view.window);
+		nodelay(stdscr, TRUE);
 		switch (ch) {
 			case ERR:
 				if (errno) {
@@ -693,7 +694,6 @@ show_log_view(struct got_object_id *start_id, struct g
 			default:
 				break;
 		}
-		nodelay(stdscr, TRUE);
 	}
 done:
 	free_commits(&commits);
@@ -870,6 +870,7 @@ show_diff_view(struct got_object *obj1, struct got_obj
 			break;
 		nodelay(stdscr, FALSE);
 		ch = wgetch(tog_diff_view.window);
+		nodelay(stdscr, TRUE);
 		switch (ch) {
 			case 'q':
 				done = 1;
@@ -890,7 +891,6 @@ show_diff_view(struct got_object *obj1, struct got_obj
 			default:
 				break;
 		}
-		nodelay(stdscr, TRUE);
 	}
 	fclose(f);
 	return err;