From 847aa7b869cfd6437dff919c35c6816fe555b3ed Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Thu, 30 Mar 2017 13:31:51 +1000 Subject: [PATCH] working on editor --- 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 fb5da41..388da90 100644 --- a/utils/magiedit/main.c +++ b/utils/magiedit/main.c @@ -538,6 +538,7 @@ char *message_editor() { if (position_y - top_of_screen > 20) { top_of_screen++; } + position_x = 0; } else { if (body_line_count == 0) { @@ -617,13 +618,12 @@ char *message_editor() { memset(line_cpy, 0, 81); } position_x++; - } 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); + od_set_cursor(position_y - top_of_screen + 3, position_x + 1); /* if (position_x > 1) { if (position_y > 20) {