Fix crash in magiedit when using ctrl-y

This commit is contained in:
Andrew Pamment 2017-09-10 19:21:29 +10:00
parent 85e59a64a3
commit d623ee1f10

View File

@ -609,7 +609,7 @@ char *message_editor() {
// refresh screen;
position_x = 0;
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_printf("%s", body_lines[i]);
od_clr_line();