Make message log filter highlight every matched field

Previously only the first match was being highlighted.
This commit is contained in:
Salad Dais
2021-12-09 01:14:09 +00:00
parent 95fd58e25a
commit ecb14197cf
3 changed files with 36 additions and 26 deletions

View File

@@ -364,7 +364,7 @@ class MessageLogWindow(QtWidgets.QMainWindow):
# The string has a map of fields and their associated positions within the string,
# use that to highlight any individual fields the filter matched on.
if isinstance(req, SpannedString):
for field in self.model.filter.match(entry).fields:
for field in self.model.filter.match(entry, short_circuit=False).fields:
field_span = req.spans.get(field)
if not field_span:
continue