projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
167ef57
)
Fixing BR #282 - tab completion doesn't insert suffix when there is already text...
author
Marcus Eggenberger
<egs@quassel-irc.org>
Sat, 1 Nov 2008 19:28:13 +0000
(20:28 +0100)
committer
Marcus Eggenberger
<egs@quassel-irc.org>
Sat, 1 Nov 2008 19:28:13 +0000
(20:28 +0100)
src/uisupport/tabcompleter.cpp
patch
|
blob
|
history
diff --git
a/src/uisupport/tabcompleter.cpp
b/src/uisupport/tabcompleter.cpp
index
b9a6fe2
..
93a0fa4
100644
(file)
--- a/
src/uisupport/tabcompleter.cpp
+++ b/
src/uisupport/tabcompleter.cpp
@@
-116,7
+116,7
@@
void TabCompleter::complete() {
nextCompletion++;
// we're completing the first word of the line
nextCompletion++;
// we're completing the first word of the line
- if(inputLine->
text().length
() == lastCompletionLength) {
+ if(inputLine->
cursorPosition
() == lastCompletionLength) {
inputLine->insert(nickSuffix);
lastCompletionLength += nickSuffix.length();
}
inputLine->insert(nickSuffix);
lastCompletionLength += nickSuffix.length();
}