another fix

This commit is contained in:
Andrew Pamment 2017-09-03 17:52:24 +10:00
parent 3d1f083e24
commit 6e567179ba

View File

@ -594,7 +594,7 @@ char *message_editor() {
// refresh screen; // refresh screen;
position_x = 0; position_x = 0;
if (position_y < body_line_count) { if (position_y <= body_line_count) {
for (i=position_y; i<= body_line_count && i < top_of_screen + 17;i++) { for (i=position_y; i<= body_line_count && i < top_of_screen + 17;i++) {
od_set_cursor(i - top_of_screen + 5, 1); od_set_cursor(i - top_of_screen + 5, 1);
od_printf("%s", body_lines[i]); od_printf("%s", body_lines[i]);