From 0193d3cd5ad464c4cec75926970b14f9c41288a9 Mon Sep 17 00:00:00 2001 From: Janne Koschinski Date: Tue, 2 Feb 2016 17:50:32 +0100 Subject: [PATCH] Fixed a tiny bug in aliasmanager MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The `/wait` check is to test if the first command is a `/wait`, which would operate synchronously. But `/wait` matches also on other commands – so, if, for example, we’d have a command like `/waiting`, it would be matched. Instead we actually want to match on `/wait ` (with space at the end). --- src/common/aliasmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/aliasmanager.cpp b/src/common/aliasmanager.cpp index 05ef3c93..cd21f991 100644 --- a/src/common/aliasmanager.cpp +++ b/src/common/aliasmanager.cpp @@ -198,7 +198,7 @@ void AliasManager::expand(const QString &alias, const BufferInfo &bufferInfo, co while (!expandedCommands.isEmpty()) { QString command; - if (expandedCommands[0].trimmed().toLower().startsWith("/wait")) { + if (expandedCommands[0].trimmed().toLower().startsWith("/wait ")) { command = expandedCommands.join("; "); expandedCommands.clear(); } -- 2.20.1