mirror of
https://github.com/walles/moar.git
synced 2024-09-11 12:15:43 +03:00
Improve a comment
This commit is contained in:
parent
e80c60439b
commit
4475ce5c63
@ -63,8 +63,11 @@ func consumeLessTermcapEnvs(chromaStyle *chroma.Style, chromaFormatter *chroma.F
|
|||||||
setStyle(&manPageBold, "LESS_TERMCAP_md", twinStyleFromChroma(chromaStyle, chromaFormatter, chroma.GenericStrong))
|
setStyle(&manPageBold, "LESS_TERMCAP_md", twinStyleFromChroma(chromaStyle, chromaFormatter, chroma.GenericStrong))
|
||||||
setStyle(&manPageUnderline, "LESS_TERMCAP_us", twinStyleFromChroma(chromaStyle, chromaFormatter, chroma.GenericUnderline))
|
setStyle(&manPageUnderline, "LESS_TERMCAP_us", twinStyleFromChroma(chromaStyle, chromaFormatter, chroma.GenericUnderline))
|
||||||
|
|
||||||
// Special treat this because standoutStyle defaults to nil, and should be
|
// Since standoutStyle defaults to nil we can't just pass it to setStyle().
|
||||||
// set only if there is a style defined through the environment.
|
// Instead we give it special treatment here and set it only if its
|
||||||
|
// environment variable is set.
|
||||||
|
//
|
||||||
|
// Ref: https://github.com/walles/moar/issues/171
|
||||||
envValue := os.Getenv("LESS_TERMCAP_so")
|
envValue := os.Getenv("LESS_TERMCAP_so")
|
||||||
if envValue != "" {
|
if envValue != "" {
|
||||||
style := termcapToStyle(envValue)
|
style := termcapToStyle(envValue)
|
||||||
|
Loading…
Reference in New Issue
Block a user