Fix crash in magiedit when using ctrl-y
This commit is contained in:
parent
85e59a64a3
commit
d623ee1f10
@ -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();
|
||||
|
Reference in New Issue
Block a user