m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-18 16:45:38 -05:00
This commit is contained in:
Junegunn Choi
2025-06-28 00:32:41 +09:00
parent 111266d832
commit 397fe8e395
7 changed files with 32 additions and 28 deletions

View File

@@ -406,7 +406,6 @@ func interpretCode(ansiCode string, prevState *ansiState) ansiState {
state.fg = -1
state.bg = -1
state.attr = 0
state.lbg = -1
}
if len(ansiCode) <= 3 {

View File

@@ -103,6 +103,7 @@ const (
AttrRegular = Attr(1 << 7)
AttrClear = Attr(1 << 8)
BoldForce = Attr(1 << 10)
FullBg = Attr(1 << 11)
)
func (r *FullscreenRenderer) Bell() {
@@ -161,10 +162,10 @@ func (c Color) Style() tcell.Color {
func (a Attr) Merge(b Attr) Attr {
if b&AttrRegular > 0 {
// Only keep bold attribute set by the system
return b | (a & BoldForce)
return (b &^ AttrRegular) | (a & BoldForce)
}
return a | b
return (a &^ AttrRegular) | b
}
// handle the following as private members of FullscreenRenderer instance