summaryrefslogtreecommitdiff
path: root/src/ansi.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2025-06-27 23:21:48 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2025-06-27 23:21:48 +0900
commit111266d83246cffa0f70d1db054f1e39a555ff80 (patch)
tree74eb2891ba0ddfeb3ca9e9d870b031a3d1732c27 /src/ansi.go
parent19d858f9b658add0e745e752c28748c7216d52bd (diff)
downloadfzf-111266d83246cffa0f70d1db054f1e39a555ff80.tar.gz
Reset full-background property after a new line
Diffstat (limited to 'src/ansi.go')
-rw-r--r--src/ansi.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ansi.go b/src/ansi.go
index 1311620d..6bff3d2b 100644
--- a/src/ansi.go
+++ b/src/ansi.go
@@ -287,6 +287,8 @@ func extractColor(str string, state *ansiState, proc func(string, *ansiState) bo
[2]int32{int32(runeCount), int32(runeCount)},
marker,
})
+ // Reset the full-line background color
+ newState.lbg = -1
}
}