Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2011-08-28 18:11:36 +0000
committerStijn Buys <ingar@osirion.org>2011-08-28 18:11:36 +0000
commit57f96d26fd5311541e61a08542f71b9417963c5e (patch)
treeac316000f8f7cf42822909925cd7d3c0b602179d /src/core
parent1158e624c9daf10b08643b59bcb36dcc1d2caad8 (diff)
Corrected command completion cursor position on commands starting with /
Diffstat (limited to 'src/core')
-rw-r--r--src/core/commandbuffer.cc2
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;
}
}