summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2023-06-01 22:30:56 +1000
committerGitHub <noreply@github.com>2023-06-01 22:30:56 +1000
commite98935f83ea13c6a780d98ed4ac4e7bd07850901 (patch)
treee58289b2325351cb08cb8a6b945da6a240185dd0
parent75293ff57296f9ffef6849376da517502b216c2e (diff)
parentb250644ea880f2d09eb7273644364fae2f18ce17 (diff)
Merge pull request #2699 from jesseduffield/revert-hide-underscores
-rw-r--r--pkg/gui/style/text_style.go23
1 files changed, 0 insertions, 23 deletions
diff --git a/pkg/gui/style/text_style.go b/pkg/gui/style/text_style.go
index 3eee68eff..f0a1da0e6 100644
--- a/pkg/gui/style/text_style.go
+++ b/pkg/gui/style/text_style.go
@@ -1,8 +1,6 @@
package style
import (
- "os"
-
"github.com/gookit/color"
)
@@ -27,23 +25,6 @@ import (
// a string, we derive it when a new TextStyle is created and store it in the
// `style` field.
-// 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
-var (
- underscoreEnvChecked bool
- hideUnderscores bool
-)
-
-func hideUnderScores() bool {
- if !underscoreEnvChecked {
- hideUnderscores = os.Getenv("TERM_PROGRAM") == "vscode"
- underscoreEnvChecked = true
- }
-
- return hideUnderscores
-}
-
type TextStyle struct {
fg *Color
bg *Color
@@ -83,10 +64,6 @@ func (b TextStyle) SetBold() TextStyle {
}
func (b TextStyle) SetUnderline() TextStyle {
- if hideUnderScores() {
- return b
- }
-
b.decoration.SetUnderline()
b.Style = b.deriveStyle()
return b