Skip to content

Commit

Permalink
Bug fix to restore preservation and display of recently-used filters
Browse files Browse the repository at this point in the history
I inadvertently broke this - when you place focus in the display filter
widget, with an empty field, the drop-down should be populated with the
list of most-recently-used filters, like Wireshark. Instead, I wasn't
saving these filters, so the list to display was always empty - in that
case, termshark falls back to show filter tokens whose prefix matches
the current field value (which is empty).
  • Loading branch information
gcla committed Apr 12, 2022
1 parent 5323696 commit cd0d2a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -2813,6 +2813,7 @@ func RequestLoadPcap(pcapf string, displayFilter string, jump termshark.GlobalJu
func RequestNewFilter(displayFilter string, app gowid.IApp) {
handlers := pcap.HandlerList{
SimpleErrors{},
MakeSaveRecents("", displayFilter),
MakePacketViewUpdater(),
MakeUpdateCurrentCaptureInTitle(),
SetStructWidgets{Loader}, // for OnClear
Expand Down

0 comments on commit cd0d2a3

Please sign in to comment.