Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
vE5li committed Sep 27, 2023
1 parent 5f954df commit 11a3cc3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/widgets/textbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,8 @@ static void textbox_draw(widget *wid, cairo_t *draw) {
tb->cursor_x_pos = x + cursor_x;
}
if (tb->blink) {
// This save/restore state is necessary to render the text in the
// correct color when `cursor-color` is set
cairo_save(draw);
// use text color as fallback for themes that don't specify the cursor
// color
Expand Down

0 comments on commit 11a3cc3

Please sign in to comment.