Skip to content

Commit f343836

Browse files
committed
Merge branch 'master' of https://github.com/GrenderG/tte
2 parents 9be24d0 + 05bd6aa commit f343836

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tte.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ void editorFlipRow(int dir) {
896896
int first = (dir == 1) ? ec.cursor_y - 1 : ec.cursor_y;
897897
editorUpdateSyntax(&ec.row[first]);
898898
editorUpdateSyntax(&ec.row[first] + 1);
899-
if (ec.num_rows - ec.cursor_y - 1 > 2)
899+
if (ec.num_rows - ec.cursor_y > 2)
900900
editorUpdateSyntax(&ec.row[first] + 2);
901901

902902
ec.cursor_y -= dir;

0 commit comments

Comments
 (0)