mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-30 03:23:08 +03:00
Use model searching in commits (and sub-commits) view
This commit is contained in:
@ -759,6 +759,14 @@ func (self *RefreshHelper) refForLog() string {
|
||||
}
|
||||
|
||||
func (self *RefreshHelper) refreshView(context types.Context) error {
|
||||
// Re-applying the filter must be done before re-rendering the view, so that
|
||||
// the filtered list model is up to date for rendering.
|
||||
self.searchHelper.ReApplyFilter(context)
|
||||
return self.c.PostRefreshUpdate(context)
|
||||
|
||||
err := self.c.PostRefreshUpdate(context)
|
||||
|
||||
// Re-applying the search must be done after re-rendering the view though,
|
||||
// so that the "x of y" status is shown correctly.
|
||||
self.searchHelper.ReApplySearch(context)
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user