mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-28 16:02:01 +03:00
Fall back to WithWaitingStatus if item is scrolled out of view
This commit is contained in:
@ -64,10 +64,10 @@ func (self inlineStatusHelperTask) Continue() {
|
||||
}
|
||||
|
||||
func (self *InlineStatusHelper) WithInlineStatus(opts InlineStatusOpts, f func(gocui.Task) error) {
|
||||
context := self.c.ContextForKey(opts.ContextKey)
|
||||
context := self.c.ContextForKey(opts.ContextKey).(types.IListContext)
|
||||
view := context.GetView()
|
||||
visible := view.Visible && self.windowHelper.TopViewInWindow(context.GetWindowName()) == view
|
||||
if visible {
|
||||
if visible && context.IsItemVisible(opts.Item) {
|
||||
self.c.OnWorker(func(task gocui.Task) {
|
||||
self.start(opts)
|
||||
|
||||
|
Reference in New Issue
Block a user