From 01152d7cd92645e7f70c7aa6e35c5ca61c1ce10f Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 20 Sep 2015 11:48:11 +0100 Subject: [PATCH] Improve escaping of % in command parsing --- src/command_manager.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command_manager.cc b/src/command_manager.cc index 9e08e0e3..a554d35d 100644 --- a/src/command_manager.cc +++ b/src/command_manager.cc @@ -310,7 +310,7 @@ TokenList parse(StringView line) if (not str.empty()) result.emplace_back(Token::Type::Raw, start, reader.pos, - coord, std::move(str)); + coord, std::move(unescape(str, "%", '\\'))); } if (is_command_separator(*reader))