minor fixes

This commit is contained in:
Andrew Pamment
2017-03-30 12:45:54 +10:00
parent 4e4e562425
commit 6ba43f0c83
2 changed files with 5 additions and 1 deletions

View File

@@ -407,6 +407,10 @@ char *message_editor() {
od_set_cursor(3, 1);
od_set_color(L_WHITE, D_BLACK);
if (position_y - top_of_screen > 20) {
top_of_screen = position_y - 20;
}
for (i=top_of_screen;i<top_of_screen + 20;i++) {
od_set_cursor(i - top_of_screen + 3, 1);
if (i < body_line_count) {