working on editor

This commit is contained in:
Andrew Pamment 2017-03-30 13:31:51 +10:00
parent 968163761e
commit 847aa7b869

View File

@ -538,6 +538,7 @@ char *message_editor() {
if (position_y - top_of_screen > 20) { if (position_y - top_of_screen > 20) {
top_of_screen++; top_of_screen++;
} }
position_x = 0;
} else { } else {
if (body_line_count == 0) { if (body_line_count == 0) {
@ -617,13 +618,12 @@ char *message_editor() {
memset(line_cpy, 0, 81); memset(line_cpy, 0, 81);
} }
position_x++; position_x++;
} }
od_set_cursor(position_y - top_of_screen + 3, position_x); od_set_cursor(position_y - top_of_screen + 3, position_x);
od_printf("%s", &line[position_x-1]); od_printf("%s", &line[position_x-1]);
od_clr_line(); 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_x > 1) {
if (position_y > 20) { if (position_y > 20) {