Skip to content

Commit 00bfc5c

Browse files
rene00Lallassu
authored andcommitted
When deleting an article, update the preview tab for the next article.
1 parent 4a4a7bf commit 00bfc5c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

internal/controller.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,11 @@ func (c *Controller) Input(e *tcell.EventKey) *tcell.EventKey {
485485
}
486486
c.ShowArticles(c.activeFeed)
487487
c.ShowFeeds()
488+
count := c.win.articles.GetRowCount()
489+
r, _ := c.win.articles.GetSelection()
490+
if r < count-1 {
491+
c.win.articles.Select(r, 3)
492+
}
488493
}
489494

490495
case c.conf.KeyMoveDown, "Down":

0 commit comments

Comments
 (0)