Chars at end of cursor line fixed
This commit is contained in:
parent
65bfd8767e
commit
1c91e8b038
|
@ -95,9 +95,9 @@ void draw_cursor(struct Cursor * cursor, int * screen_height)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
mvaddch(cursor->y - cursor->length - 4, cursor->x, ' ');
|
mvaddch(cursor->y - cursor->length - 4, cursor->x, ' ');
|
||||||
print_with_color(cursor->string[cursor->y - cursor->length], cursor->x, cursor->y - cursor->length - 3, BLACK_GREEN);
|
print_with_color(cursor->string[cursor->y - cursor->length - 3], cursor->x, cursor->y - cursor->length - 3, BLACK_GREEN);
|
||||||
print_with_color(cursor->string[cursor->y - cursor->length], cursor->x, cursor->y - cursor->length - 2, DARK_GREEN);
|
print_with_color(cursor->string[cursor->y - cursor->length - 2], cursor->x, cursor->y - cursor->length - 2, DARK_GREEN);
|
||||||
print_with_color(cursor->string[cursor->y - cursor->length + 1], cursor->x, cursor->y - cursor->length - 1, MID_GREEN);
|
print_with_color(cursor->string[cursor->y - cursor->length - 1], cursor->x, cursor->y - cursor->length - 1, MID_GREEN);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cursor->y > *screen_height + cursor->length + 3) {
|
if (cursor->y > *screen_height + cursor->length + 3) {
|
||||||
|
|
Loading…
Reference in New Issue