diff --git a/ui/cmdbar.go b/ui/cmdbar.go index 31354f1..f6f4aa9 100644 --- a/ui/cmdbar.go +++ b/ui/cmdbar.go @@ -282,7 +282,7 @@ func (c *CmdBar) DoneFunc(key tcell.Key) { func (c *CmdBar) Autocomplete(curr string) []string { var entries []string - words := strings.Split(":blocking,:boosts,:bookmarks,:clear-notifications,:compose,:favorites,:favorited,:follow-tag,:followers,:following,:help,:h,:history,:move-pane,:lists,:list-placement,:list-split,:muting,:newer,:preferences,:profile,:proportions,:refetch,:requests,:saved,:stick-to-top,:tag,:timeline,:tl,:unfollow-tag,:user,:pane,:quit,:q", ",") + words := strings.Split(":blocking,:boosts,:bookmarks,:clear-notifications,:close-pane,:compose,:favorites,:favorited,:follow-tag,:followers,:following,:help,:h,:history,:move-pane,:lists,:list-placement,:list-split,:muting,:newer,:preferences,:profile,:proportions,:refetch,:requests,:saved,:stick-to-top,:tag,:timeline,:tl,:unfollow-tag,:user,:pane,:quit,:q", ",") if curr == "" { return entries } diff --git a/ui/timeline.go b/ui/timeline.go index c2fa8de..8e0b021 100644 --- a/ui/timeline.go +++ b/ui/timeline.go @@ -153,7 +153,7 @@ func (tl *Timeline) MoveCurrentPaneEnd() { } func (tl *Timeline) CloseCurrentPane() { - if len(tl.Feeds) == 0 { + if len(tl.Feeds) < 2 { return } feeds := tl.Feeds[tl.FeedFocusIndex]