1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-31 14:24:25 +03:00

Always reapply filters on filtered views, even inactive ones

This commit is contained in:
Stefan Haller
2024-06-10 11:20:59 +02:00
parent c6df856079
commit e205c6ba7f
2 changed files with 5 additions and 7 deletions

View File

@ -239,14 +239,14 @@ func (self *SearchHelper) OnPromptContentChanged(searchString string) {
}
func (self *SearchHelper) ReApplyFilter(context types.Context) {
state := self.searchState()
if context == state.Context {
filterableContext, ok := context.(types.IFilterableContext)
if ok {
filterableContext, ok := context.(types.IFilterableContext)
if ok {
state := self.searchState()
if context == state.Context {
filterableContext.SetSelection(0)
_ = filterableContext.GetView().SetOriginY(0)
filterableContext.ReApplyFilter(self.c.UserConfig.Gui.UseFuzzySearch())
}
filterableContext.ReApplyFilter(self.c.UserConfig.Gui.UseFuzzySearch())
}
}