MCPcopy Create free account
hub / github.com/mitmproxy/mitmproxy / set_highlight

Method set_highlight

mitmproxy/tools/console/searchable.py:48–56  ·  view source on GitHub ↗
(self, offset)

Source from the content-addressed store, hash-verified

46 self.find_next(False)
47
48 def set_highlight(self, offset):
49 if self.current_highlight is not None:
50 old = self.body[self.current_highlight]
51 self.body[self.current_highlight] = old.backup
52 if offset is None:
53 self.current_highlight = None
54 else:
55 self.body[offset] = Highlight(self.body[offset])
56 self.current_highlight = offset
57
58 def get_text(self, w):
59 if isinstance(w, urwid.Text):

Callers 1

find_nextMethod · 0.95

Calls 1

HighlightClass · 0.85

Tested by

no test coverage detected