diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/commandbuffer.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/commandbuffer.cc b/src/core/commandbuffer.cc index 9757cb9..d46cc38 100644 --- a/src/core/commandbuffer.cc +++ b/src/core/commandbuffer.cc @@ -512,7 +512,7 @@ void CommandBuffer::complete(std::string &input, size_t &pos) if (maxmatch.size() > partial.size()) { if (match.size() == 1) maxmatch += ' '; input.replace(start, pos, maxmatch); - pos = maxmatch.size(); + pos = maxmatch.size() + start; } } |