diff --git a/mitmproxy/tools/console/common.py b/mitmproxy/tools/console/common.py index 3a5b4aeb7..0cebd9a8d 100644 --- a/mitmproxy/tools/console/common.py +++ b/mitmproxy/tools/console/common.py @@ -369,18 +369,15 @@ def raw_format_table(f): req = [] cursor = [' ', 'focus'] - if f.get('resp_is_replay', False): - cursor[0] = SYMBOL_REPLAY - cursor[1] = 'replay' - if f['marked']: - if cursor[0] == ' ': - cursor[0] = SYMBOL_MARK - cursor[1] = 'mark' if f['focus']: cursor[0] = '>' - req.append(fcol(*cursor)) + if f.get('resp_is_replay', False) or f.get('req_is_replay', False): + req.append(fcol(SYMBOL_REPLAY, 'replay')) + if f['marked']: + req.append(fcol(SYMBOL_MARK, 'mark')) + if f["two_line"]: req.append(TruncatedText(f["req_url"], colorize_url(f["req_url"]), 'left')) pile.append(urwid.Columns(req, dividechars=1))