Commit Diff


commit - bf7e79b3bda88577a127a80a52a869c2766b8d7f
commit + 4122562d732f642d4fe4f5926b534508f2336155
blob - 1bbc6ac3ff0891d3af6e5d85173bee936fc262f2
blob + ef11f62ccd355dfd3ed47b46417d6dbebb0c8a6a
--- tog/tog.c
+++ tog/tog.c
@@ -3251,7 +3251,7 @@ draw_file(struct tog_view *view, const char *header)
 				free(line);
 				return err;
 			}
-			if (view->x < width - 1)
+			if (view->x < width)
 				waddwstr(view->window, wline + view->x);
 			free(wline);
 			wline = NULL;