summaryrefslogtreecommitdiff
path: root/state.go
diff options
context:
space:
mode:
Diffstat (limited to 'state.go')
-rw-r--r--state.go14
1 files changed, 11 insertions, 3 deletions
diff --git a/state.go b/state.go
index 5838fcd..1af2503 100644
--- a/state.go
+++ b/state.go
@@ -9,8 +9,14 @@ import (
type BrowserState struct {
*History
- Modal []byte
- Marks map[string]string
+ Modal []byte
+
+ Marks map[string]string
+
+ NamedTours map[string]*Tour
+ DefaultTour Tour
+ CurrentTour *Tour
+
Readline *readline.Instance
}
@@ -39,11 +45,13 @@ type Link struct {
}
func NewBrowserState() *BrowserState {
- return &BrowserState{
+ state := &BrowserState{
History: &History{
Url: nil,
Depth: 0,
NavIndex: -1,
},
}
+ state.CurrentTour = &state.DefaultTour
+ return state
}