1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-12-06 10:47:38 +02:00

hide underscores more

This commit is contained in:
Jesse Duffield 2022-11-13 14:41:43 +11:00
parent c77c02c879
commit 5964472ec1

View File

@ -1,11 +1,20 @@
package style package style
import ( import (
"os"
"text/template" "text/template"
"github.com/gookit/color" "github.com/gookit/color"
) )
// See https://github.com/xtermjs/xterm.js/issues/4238
// VSCode is soon to fix this in an upcoming update.
// Once that's done, we can scrap the HIDE_UNDERSCORES variable
// duplicating because init() isn't always called when we need it
func init() {
HIDE_UNDERSCORES = os.Getenv("TERM_PROGRAM") == "vscode"
}
var ( var (
FgWhite = FromBasicFg(color.FgWhite) FgWhite = FromBasicFg(color.FgWhite)
FgLightWhite = FromBasicFg(color.FgLightWhite) FgLightWhite = FromBasicFg(color.FgLightWhite)