From 57f96d26fd5311541e61a08542f71b9417963c5e Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 28 Aug 2011 18:11:36 +0000 Subject: Corrected command completion cursor position on commands starting with / --- src/core/commandbuffer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core') 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; } } -- cgit v1.2.3