We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bb1e93 commit 32b114bCopy full SHA for 32b114b
ui/input_filter.go
@@ -21,11 +21,14 @@ func handleFilterInput(key tcell.Key) {
21
if err != nil {
22
ShowError(err)
23
24
- // There was an error with the new filter string
25
- // lets try to use the old one to populate the screen.
26
- // We gonna ignore any more errors though.
27
- logsView.Clear()
28
- store.Filter(filter)
+ // There was an error in filter string
+ // But redraw the screen only if filter is actually turned on
+ if isFilterOn {
+ logsView.Clear()
+ store.Filter(filter)
29
+ }
30
+
31
+ // Lets revert the filter to previous one
32
filterInput.SetText(filter)
33
layout.RemoveItem(filterInput)
34
return
0 commit comments