summaryrefslogtreecommitdiff
path: root/src/command_manager.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2017-05-08 11:46:03 +0100
committerMaxime Coste <mawww@kakoune.org>2017-05-08 11:46:03 +0100
commit6a97455b3b5355d55972c0ca334b1ce53b83f53e (patch)
tree7c3d89070c28ee59028b5801481c3875608cdf66 /src/command_manager.cc
parentad1175fefc5d8fbf3bc2d9ec917bdc1ba330ed7f (diff)
Do not push a final spurious command separators when parsing commands
Fixes #1336
Diffstat (limited to 'src/command_manager.cc')
-rw-r--r--src/command_manager.cc2
1 files changed, 1 insertions, 1 deletions
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);
}