From f29ed7e0b03a6dd4795c89a0abcee7a45b37068f Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Thu, 30 Mar 2017 13:53:08 +1000 Subject: [PATCH] fixes to magiedit --- utils/magiedit/main.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/utils/magiedit/main.c b/utils/magiedit/main.c index 78bb7bf..0bc9f41 100644 --- a/utils/magiedit/main.c +++ b/utils/magiedit/main.c @@ -580,18 +580,18 @@ char *message_editor() { od_set_cursor(position_y - top_of_screen + 3, position_x); od_printf("%s", &line[position_x-1]); od_clr_line(); - od_set_cursor(position_y - top_of_screen + 3, position_x + 1); + } else { od_set_cursor(position_y - top_of_screen + 3, 1); od_printf("%s", line); od_clr_line(); - od_set_cursor(position_y - top_of_screen + 3, 1); } for (i=position_y;i 0) { od_set_cursor(position_y - top_of_screen + 3, position_x); od_printf("%s", &line[position_x-1]); - od_clr_line(); - od_set_cursor(position_y - top_of_screen + 3, position_x + 1); + od_clr_line(); } else { od_set_cursor(position_y - top_of_screen + 3, 1); od_printf("%s", line); od_clr_line(); - od_set_cursor(position_y - top_of_screen + 3, 1); } + od_set_cursor(position_y - top_of_screen + 3, position_x + 1); /* if (position_x > 1) { if (position_y > 20) {