mirror of
https://github.com/walles/moar.git
synced 2024-09-11 12:15:43 +03:00
Always use style color for plain text
Before this change, it only worked on 16M color terminals. After there's a Chroma release with https://github.com/alecthomas/chroma/pull/869 in it we should revert back to "None" here and use the new Chroma release instead.
This commit is contained in:
parent
ae34878ee5
commit
cbbdaf632b
@ -450,7 +450,12 @@ func (p *Pager) initStyle() {
|
||||
|
||||
stringBuilder := strings.Builder{}
|
||||
err := (*p.ChromaFormatter).Format(&stringBuilder, p.ChromaStyle, chroma.Literator(chroma.Token{
|
||||
Type: chroma.None,
|
||||
// FIXME: They Type here should really be None. "Background" is a
|
||||
// workaround until we can bump Chroma to a release with this change in
|
||||
// it:
|
||||
// https://github.com/alecthomas/chroma/pull/869
|
||||
Type: chroma.Background,
|
||||
|
||||
Value: "XXX",
|
||||
}))
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user