From 0cf27ecc00dfd9d8d58e918808adaee7689c3d2a Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Fri, 29 Sep 2017 13:14:36 +1000 Subject: [PATCH] Fix magiedit --- utils/magiedit/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/magiedit/main.c b/utils/magiedit/main.c index 1181334..f350fa1 100644 --- a/utils/magiedit/main.c +++ b/utils/magiedit/main.c @@ -414,9 +414,9 @@ char *message_editor() { od_printf("%s", line); od_clr_line(); - i = position_y + 1; + i = position_y; - if (position_y + 1 <= body_line_count) { + if (position_y <= body_line_count) { for (; i< body_line_count && i < top_of_screen + 17;i++) { od_set_cursor(i - top_of_screen + 5, 1); od_printf("%s", body_lines[i]);