Skip to content

Commit

Permalink
fix line cursor invisible (zero sized) if cell_width is small enough (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
paolo-sz committed Oct 18, 2022
1 parent 7203c60 commit f4a04ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/wintext.c
Original file line number Diff line number Diff line change
Expand Up @@ -4118,6 +4118,7 @@ draw:;
caret_width = (3 + (lattr >= LATTR_WIDE ? 2 : 0)) * cell_width / 40;
SystemParametersInfo(SPI_GETCARETWIDTH, 0, &caret_width, 0);
caret_width *= cell_width / 8;
caret_width = (caret_width == 0) ? 1 : caret_width;
// limit cursor width (previously by line_width, #1101)
if (caret_width > cell_width)
caret_width = cell_width;
Expand Down

0 comments on commit f4a04ee

Please sign in to comment.