1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-28 16:02:01 +03:00

When refreshing models, re-apply active filter for the corresponding view

This commit is contained in:
Stefan Haller
2023-10-08 19:52:54 +02:00
parent ecaa4846f1
commit b5ca6a3add
7 changed files with 96 additions and 16 deletions

View File

@ -41,6 +41,10 @@ func (self *FilteredList[T]) ClearFilter() {
self.SetFilter("")
}
func (self *FilteredList[T]) ReApplyFilter() {
self.applyFilter()
}
func (self *FilteredList[T]) IsFiltering() bool {
return self.filter != ""
}