diff options
Diffstat (limited to 'state.go')
| -rw-r--r-- | state.go | 11 |
1 files changed, 2 insertions, 9 deletions
@@ -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 |
