work on editor
This commit is contained in:
parent
847aa7b869
commit
2a7579f52e
@ -539,7 +539,7 @@ char *message_editor() {
|
|||||||
top_of_screen++;
|
top_of_screen++;
|
||||||
}
|
}
|
||||||
position_x = 0;
|
position_x = 0;
|
||||||
|
od_clr_line();
|
||||||
} else {
|
} else {
|
||||||
if (body_line_count == 0) {
|
if (body_line_count == 0) {
|
||||||
body_lines = (char **)malloc(sizeof(char *));
|
body_lines = (char **)malloc(sizeof(char *));
|
||||||
@ -620,10 +620,14 @@ char *message_editor() {
|
|||||||
position_x++;
|
position_x++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (position_x > 0) {
|
||||||
od_set_cursor(position_y - top_of_screen + 3, position_x);
|
od_set_cursor(position_y - top_of_screen + 3, position_x);
|
||||||
od_printf("%s", &line[position_x-1]);
|
od_printf("%s", &line[position_x-1]);
|
||||||
od_clr_line();
|
od_clr_line();
|
||||||
od_set_cursor(position_y - top_of_screen + 3, position_x + 1);
|
od_set_cursor(position_y - top_of_screen + 3, position_x + 1);
|
||||||
|
} else {
|
||||||
|
od_clr_line();
|
||||||
|
}
|
||||||
/*
|
/*
|
||||||
if (position_x > 1) {
|
if (position_x > 1) {
|
||||||
if (position_y > 20) {
|
if (position_y > 20) {
|
||||||
|
Reference in New Issue
Block a user