Merge branch 'master' of https://github.com/GrenderG/tte
This commit is contained in:
commit
f343836566
1 file changed
+1
-1
@@ -896,7 +896,7 @@ void editorFlipRow(int dir) {
|
|||||||
int first = (dir == 1) ? ec.cursor_y - 1 : ec.cursor_y;
|
int first = (dir == 1) ? ec.cursor_y - 1 : ec.cursor_y;
|
||||||
editorUpdateSyntax(&ec.row[first]);
|
editorUpdateSyntax(&ec.row[first]);
|
||||||
editorUpdateSyntax(&ec.row[first] + 1);
|
editorUpdateSyntax(&ec.row[first] + 1);
|
||||||
if (ec.num_rows - ec.cursor_y - 1 > 2)
|
if (ec.num_rows - ec.cursor_y > 2)
|
||||||
editorUpdateSyntax(&ec.row[first] + 2);
|
editorUpdateSyntax(&ec.row[first] + 2);
|
||||||
|
|
||||||
ec.cursor_y -= dir;
|
ec.cursor_y -= dir;
|
||||||
|
|||||||
Reference in new issue
Block a user