We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed9941a commit 340af96Copy full SHA for 340af96
src/sqltextedit.cpp
@@ -83,7 +83,9 @@ void SqlTextEdit::insertCompletion(const QString& completion)
83
// eg. "tablename.;" if you would select a field completion and hit enter
84
// without this workaround the text would be inserted after the ';'
85
// because endofword moves to the end of the line
86
- if(tc.selectedText() == ".")
+ // or we have no competionprefix at all (CTRL+SPACE) without text
87
+ // under cursor
88
+ if(tc.selectedText() == "." || m_Completer->completionPrefix().isEmpty())
89
tc.movePosition(QTextCursor::Right);
90
else
91
tc.movePosition(QTextCursor::EndOfWord);
0 commit comments