diff options
Diffstat (limited to 'tour.go')
| -rw-r--r-- | tour.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -65,7 +65,7 @@ func TourAdd(state *BrowserState, targets []string) error { return saveTours(state.NamedTours) } - state.Modal = []byte(fmt.Sprintf("Added %d urls to the tour\n", len(newurls))) + state.Modal = fmt.Appendf([]byte{}, "Added %d urls to the tour\n", len(newurls)) return Print(state) } @@ -89,7 +89,7 @@ func TourAddNext(state *BrowserState, targets []string) error { return saveTours(state.NamedTours) } - state.Modal = []byte(fmt.Sprintf("Added %d urls to go next on the tour\n", len(newurls))) + state.Modal = fmt.Appendf([]byte{}, "Added %d urls to go next on the tour\n", len(newurls)) return Print(state) } @@ -192,7 +192,7 @@ func TourSelect(state *BrowserState, name string) error { } state.CurrentTour = tour - state.Modal = []byte(fmt.Sprintf("Tour %s is now active\n", tourName)) + state.Modal = fmt.Appendf([]byte{}, "Tour %s is now active\n", tourName) return Print(state) } |
