summaryrefslogtreecommitdiff
path: root/state.go
diff options
context:
space:
mode:
Diffstat (limited to 'state.go')
-rw-r--r--state.go11
1 files changed, 2 insertions, 9 deletions
diff --git a/state.go b/state.go
index c46862f..57767a8 100644
--- a/state.go
+++ b/state.go
@@ -2,13 +2,13 @@ package main
import (
"net/url"
- "time"
"github.com/chzyer/readline"
)
type BrowserState struct {
*History
+ *Config
Modal []byte
@@ -20,10 +20,6 @@ type BrowserState struct {
DefaultTour Tour
CurrentTour *Tour
- Quiet bool
- Pager string
- Timeout time.Duration
-
Readline *readline.Instance
}
@@ -59,10 +55,7 @@ func NewBrowserState(conf *Config) *BrowserState {
Depth: 0,
NavIndex: -1,
},
-
- Quiet: conf.Quiet,
- Pager: conf.Pager,
- Timeout: conf.Timeout.Duration,
+ Config: conf,
}
state.CurrentTour = &state.DefaultTour
return state