From 150e2c478051926d16763c247f76291f81d248cb Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Fri, 16 Nov 2018 08:50:26 +0100 Subject: [PATCH] fixed bug with stopping editor text input before reaching the last line --- src/editor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor.c b/src/editor.c index c993b6ea..2bf5543c 100644 --- a/src/editor.c +++ b/src/editor.c @@ -12411,7 +12411,7 @@ static int DrawLevelText(int sx, int sy, char letter, int mode) break; case TEXT_NEWLINE: - if (sy + 1 < ed_fieldy - 1 && ly + 1 < lev_fieldy - 1) + if (sy + 1 < ed_fieldy && ly + 1 < lev_fieldy) DrawLevelText(start_sx, sy + 1, 0, TEXT_SETCURSOR); else DrawLevelText(0, 0, 0, TEXT_END); -- 2.34.1