summaryrefslogtreecommitdiff
path: root/state.go
diff options
context:
space:
mode:
Diffstat (limited to 'state.go')
-rw-r--r--state.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/state.go b/state.go
index 6a6c885..a967b7b 100644
--- a/state.go
+++ b/state.go
@@ -13,6 +13,8 @@ type BrowserState struct {
Marks map[string]string
+ Identities Identities
+
NamedTours map[string]*Tour
DefaultTour Tour
CurrentTour *Tour
@@ -48,13 +50,16 @@ type Link struct {
Prompt bool
}
-func NewBrowserState() *BrowserState {
+func NewBrowserState(conf *Config) *BrowserState {
state := &BrowserState{
History: &History{
Url: nil,
Depth: 0,
NavIndex: -1,
},
+
+ Quiet: conf.Quiet,
+ Pager: conf.Pager,
}
state.CurrentTour = &state.DefaultTour
return state