Skip to content

Commit

Permalink
exotui: make sure tag stack is empty on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
neutralinsomniac committed Apr 4, 2020
1 parent b491e7b commit e253c8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/exotui/exotui.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (s *state) Refresh() {
}

func (s *state) SwitchTag(tag db.Tag) {
if tag.ID != s.CurrentDBTag.ID {
if tag.ID != s.CurrentDBTag.ID && s.CurrentDBTag.ID != 0 {
err := s.DeleteTagIfEmpty(s.CurrentDBTag.ID)
checkErr(err)
// if we're switching to a new tag, push it onto our tag stack
Expand Down

0 comments on commit e253c8a

Please sign in to comment.