From e83c4d36fbb5b5451b65b5b94cf1fc8b6a24e88e Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Sun, 10 Sep 2017 20:18:40 +1000 Subject: [PATCH] Try 3 at backspace stuff.... --- 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 424308f..abbc18a 100644 --- a/utils/magiedit/main.c +++ b/utils/magiedit/main.c @@ -410,8 +410,8 @@ char *message_editor() { top_of_screen--; } - if (position_y <= body_line_count) { - for (i=position_y; i< body_line_count && i < top_of_screen + 17;i++) { + if (position_y - 1 <= body_line_count) { + for (i=position_y-1; 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]); od_clr_line();