summaryrefslogtreecommitdiffstats
path: root/interfacer/src/browsh/tty.go
diff options
context:
space:
mode:
Diffstat (limited to 'interfacer/src/browsh/tty.go')
-rw-r--r--interfacer/src/browsh/tty.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/interfacer/src/browsh/tty.go b/interfacer/src/browsh/tty.go
index acca724..47eaf1c 100644
--- a/interfacer/src/browsh/tty.go
+++ b/interfacer/src/browsh/tty.go
@@ -16,6 +16,8 @@ var (
uiHeight = 2
// IsMonochromeMode decides whether to render the TTY in full colour or monochrome
IsMonochromeMode = false
+
+ errNormalExit = errors.New("normal")
)
func setupTcell() {
@@ -110,7 +112,7 @@ func quitBrowsh() {
if !viper.GetBool("firefox.use-existing") {
quitFirefox()
}
- Shutdown(errors.New("normal"))
+ Shutdown(errNormalExit)
}
func toggleMonochromeMode() {
@@ -227,7 +229,7 @@ func handleTTYResize() {
// that have changed.
func renderCurrentTabWindow() {
var currentCell cell
- var styling = tcell.StyleDefault
+ styling := tcell.StyleDefault
var runeChars []rune
width, height := screen.Size()
if CurrentTab == nil || CurrentTab.frame.cells == nil {