From 3372b77e93c7adf98f6d067bf7bb01ded42054c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=7C=20=7C=E4=B8=89=20=5C/=20=7C=20=7C=5C=7C?= Date: Fri, 8 May 2020 22:04:05 +0200 Subject: Add a space after prefilled console command string (#3985) Add a space after console command string --- mitmproxy/tools/console/consoleaddons.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mitmproxy/tools/console/consoleaddons.py b/mitmproxy/tools/console/consoleaddons.py index 12448945..8b9b4254 100644 --- a/mitmproxy/tools/console/consoleaddons.py +++ b/mitmproxy/tools/console/consoleaddons.py @@ -292,6 +292,8 @@ class ConsoleAddon: Prompt the user to edit a command with a (possibly empty) starting value. """ quoted = " ".join(command_lexer.quote(x) for x in command_str) + if quoted: + quoted += " " signals.status_prompt_command.send(partial=quoted) @command.command("console.command.set") -- cgit v1.2.3