Try to fix display for backspace
This commit is contained in:
parent
e7acf16095
commit
be2585f2b7
@ -410,8 +410,12 @@ char *message_editor() {
|
||||
top_of_screen--;
|
||||
}
|
||||
|
||||
if (position_y - 1 <= body_line_count) {
|
||||
for (i=position_y-1; i< body_line_count && i < top_of_screen + 17;i++) {
|
||||
od_set_cursor((position_y - 1) - top_of_screen + 5, 1);
|
||||
od_printf("%s", line);
|
||||
od_clr_line();
|
||||
|
||||
if (position_y <= body_line_count) {
|
||||
for (i=position_y; i< body_line_count && i < top_of_screen + 17;i++) {
|
||||
od_set_cursor(i - top_of_screen + 5, 1);
|
||||
od_printf("%s", body_lines[i]);
|
||||
od_clr_line();
|
||||
|
Reference in New Issue
Block a user