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) {