mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-29 07:58:01 -04:00
render: cursor: use default fg/bg if cell fg/bg are the same
When deciding which colors to use for the cursor, and the cursor text and background colors are the same, use the default fg/bg instead. Closes #1761
This commit is contained in:
parent
f066fe47f0
commit
c46c124363
2 changed files with 14 additions and 0 deletions
|
|
@ -84,8 +84,14 @@
|
|||
In other words, if, after this change, `XTGETTCAP` returns a string
|
||||
that is different compared to `tigetstr()`, then it is likely a bug
|
||||
in foot's implementation of `XTGETTCAP`.
|
||||
* If the cursor foreground and background colors are identical (for
|
||||
example, when cursor uses inverted colors and the cell's foreground
|
||||
and background are the same), the cursor will instead be rendered
|
||||
using the default foreground and background colors, inverted
|
||||
([#1761][1761]).
|
||||
|
||||
[1701]: https://codeberg.org/dnkl/foot/issues/1701
|
||||
[1761]: https://codeberg.org/dnkl/foot/issues/1761
|
||||
|
||||
|
||||
### Deprecated
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue