From 05bd6aa5855c4eab0f8239afb7b577dcd8daf778 Mon Sep 17 00:00:00 2001 From: GrenderG Date: Mon, 10 Apr 2017 04:24:39 +0200 Subject: [PATCH] Fixed flip comprobation. --- tte.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tte.c b/tte.c index a024182..da44fd0 100644 --- a/tte.c +++ b/tte.c @@ -891,7 +891,7 @@ void editorFlipRow(int dir) { int first = (dir == 1) ? ec.cursor_y - 1 : ec.cursor_y; editorUpdateSyntax(&ec.row[first]); 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); ec.cursor_y -= dir;