summaryrefslogtreecommitdiffstats
path: root/src/scripttools/debugging/qscriptcompletiontask.cpp
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-06-12 13:25:38 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-06-12 13:25:38 (GMT)
commitc9bddb70cb4804672cedb23dbfb3ca13724f0e68 (patch)
treed3bdfd6e79a461d7c525d52512691139cb57d11f /src/scripttools/debugging/qscriptcompletiontask.cpp
parent5038fe5d545292c58f0e06b1b6a34115ef8d357a (diff)
downloadQt-c9bddb70cb4804672cedb23dbfb3ca13724f0e68.zip
Qt-c9bddb70cb4804672cedb23dbfb3ca13724f0e68.tar.gz
Qt-c9bddb70cb4804672cedb23dbfb3ca13724f0e68.tar.bz2
fix bugs in the completion+tooltip providers
Diffstat (limited to 'src/scripttools/debugging/qscriptcompletiontask.cpp')
-rw-r--r--src/scripttools/debugging/qscriptcompletiontask.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scripttools/debugging/qscriptcompletiontask.cpp b/src/scripttools/debugging/qscriptcompletiontask.cpp
index 2f3c2cf..9554681 100644
--- a/src/scripttools/debugging/qscriptcompletiontask.cpp
+++ b/src/scripttools/debugging/qscriptcompletiontask.cpp
@@ -132,7 +132,7 @@ void QScriptCompletionTaskPrivate::completeScriptExpression()
while ((pos > 0) && isIdentChar(contents.at(pos-1)))
--pos;
- int pos2 = cursorPosition;
+ int pos2 = cursorPosition - 1;
while ((pos2 < contents.size()-1) && isIdentChar(contents.at(pos2+1)))
++pos2;
QString ident = contents.mid(pos, pos2 - pos + 1);