From 729910bcd238953cbab3465a23bc2a7293e52145 Mon Sep 17 00:00:00 2001 From: Fenil Gandhi Date: Thu, 15 Mar 2018 21:01:12 +0530 Subject: [PATCH 1/2] Removing the erroneously highlighted keybinding --- mitmproxy/tools/console/statusbar.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/mitmproxy/tools/console/statusbar.py b/mitmproxy/tools/console/statusbar.py index d601968eb..58a276773 100644 --- a/mitmproxy/tools/console/statusbar.py +++ b/mitmproxy/tools/console/statusbar.py @@ -228,10 +228,6 @@ class StatusBar(urwid.WidgetWrap): r.append("[") r.append(("heading_key", "u")) r.append(":%s]" % self.master.options.stickyauth) - if self.master.options.console_default_contentview != "auto": - r.append("[") - r.append(("heading_key", "M")) - r.append(":%s]" % self.master.options.console_default_contentview) if self.master.options.has_changed("view_order"): r.append("[") r.append(("heading_key", "o")) From d9dcf8365b38826166e3a87f2007e4e52f7618f1 Mon Sep 17 00:00:00 2001 From: Fenil Gandhi Date: Thu, 15 Mar 2018 22:54:00 +0530 Subject: [PATCH 2/2] Fixing the Fix for #2990 --- mitmproxy/tools/console/statusbar.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mitmproxy/tools/console/statusbar.py b/mitmproxy/tools/console/statusbar.py index 58a276773..34bba18d6 100644 --- a/mitmproxy/tools/console/statusbar.py +++ b/mitmproxy/tools/console/statusbar.py @@ -228,6 +228,8 @@ class StatusBar(urwid.WidgetWrap): r.append("[") r.append(("heading_key", "u")) r.append(":%s]" % self.master.options.stickyauth) + if self.master.options.console_default_contentview != 'auto': + r.append("[contentview:%s]" % (self.master.options.console_default_contentview)) if self.master.options.has_changed("view_order"): r.append("[") r.append(("heading_key", "o"))