Chars at end of cursor line fixed

This commit is contained in:
Oliver Bunert 2022-06-13 14:44:55 +02:00
parent 65bfd8767e
commit 1c91e8b038
1 changed files with 3 additions and 3 deletions

View File

@ -95,9 +95,9 @@ void draw_cursor(struct Cursor * cursor, int * screen_height)
}
} else {
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], 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 - 3], cursor->x, cursor->y - cursor->length - 3, BLACK_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);
}
if (cursor->y > *screen_height + cursor->length + 3) {