mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-18 16:45:38 -05:00
0.63.0
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user