From 1c91e8b038a3e38545bcc8f849114a33e8b1009b Mon Sep 17 00:00:00 2001 From: Oliver Bunert Date: Mon, 13 Jun 2022 14:44:55 +0200 Subject: [PATCH] Chars at end of cursor line fixed --- coderain.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/coderain.c b/coderain.c index 943e76b..9321dd2 100644 --- a/coderain.c +++ b/coderain.c @@ -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) {