From 6a97455b3b5355d55972c0ca334b1ce53b83f53e Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 8 May 2017 11:46:03 +0100 Subject: [PATCH] Do not push a final spurious command separators when parsing commands Fixes #1336 --- 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 edecb9c4..2af06c76 100644 --- a/src/command_manager.cc +++ b/src/command_manager.cc @@ -351,7 +351,7 @@ TokenList parse(StringView line) result.emplace_back(Token::Type::Raw, start, reader.pos, coord, unescape(str, "%", '\\')); - if (not reader or is_command_separator(*reader)) + if (reader and is_command_separator(*reader)) result.emplace_back(Token::Type::CommandSeparator, reader.pos, reader.pos+1, coord); }