From 60c122ac21aa0550f348583aae5ba43bc50ecc26 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Sun, 26 Mar 2017 21:23:00 +1000 Subject: [PATCH] attempt to fix wordwrapping --- utils/magiedit/main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/utils/magiedit/main.c b/utils/magiedit/main.c index 0e8f106..01375ed 100644 --- a/utils/magiedit/main.c +++ b/utils/magiedit/main.c @@ -48,7 +48,6 @@ char *message_editor() { int stage = 0; position_x = 0; position_y = 0; - body_line_count = 0; done = 0; @@ -477,6 +476,12 @@ char *message_editor() { position_x++; } } + od_set_cursor(position_y-1,1); + od_printf("%s", body_lines[position_y - 1]); + od_clr_line(); + od_set_cursor(position_y, 1); + od_printf("%s", line); + od_clr_line(); break; } }