aboutsummaryrefslogtreecommitdiff
path: root/src/app/input
diff options
context:
space:
mode:
authorYifeng He <yfhe.prsn@gmail.com>2026-04-21 14:49:24 -0700
committerGitHub <noreply@github.com>2026-04-22 00:49:24 +0300
commitd2d1cc79ea0390644c52609ebbf54f0e3a22e5a8 (patch)
tree5763981e4f9af145e9eeb7dbfc6b4450bb88c5ba /src/app/input
parent16ac5bffdabd53fb1c3f39c95840a06c615823b4 (diff)
fix: resolve transparent bg before inverse swap to prevent invisible text (#45)
Shells like zsh highlight pasted text using reverse video (SGR 7). The render pipeline makes the default background transparent (None) when it matches the host terminal background. When inverse swaps fg and bg, the transparent bg becomes fg=None (Color::Reset), which the host terminal renders as its default foreground — the same hue as the new bg, making the text invisible. Resolve None to the actual terminal background color before swapping so inverse produces correct contrasting colors. Fixes ogulcancelik/herdr#44 Co-authored-by: Can Celik <ogulcancelik@gmail.com>
Diffstat (limited to 'src/app/input')
0 files changed, 0 insertions, 0 deletions