diff --git a/src/plugins/qmljseditor/qmljseditor.cpp b/src/plugins/qmljseditor/qmljseditor.cpp
index ee693671a589536d3d5dafd784aac2ed1cdc65c5..4d700da2e738fdaf979ab43d34e38dec455dfda3 100644
--- a/src/plugins/qmljseditor/qmljseditor.cpp
+++ b/src/plugins/qmljseditor/qmljseditor.cpp
@@ -703,7 +703,9 @@ QmlJSTextEditor::QmlJSTextEditor(QWidget *parent) :
     connect(m_semanticRehighlightTimer, SIGNAL(timeout()), this, SLOT(forceSemanticRehighlight()));
 
     connect(this, SIGNAL(textChanged()), this, SLOT(updateDocument()));
+
     connect(this, SIGNAL(textChanged()), this, SLOT(updateUses()));
+    connect(this, SIGNAL(cursorPositionChanged()), this, SLOT(updateUses()));
 
     m_updateOutlineTimer = new QTimer(this);
     m_updateOutlineTimer->setInterval(UPDATE_OUTLINE_INTERVAL);