forked from qt-creator/qt-creator
Editor: Correctly reset cursor for automatically inserted text
Change-Id: I7f9eee035cf3b85321de6d3f2a7a1d62e4e58376 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -4961,7 +4961,7 @@ void TextEditorWidgetPrivate::updateHighlights()
|
||||
return !m_autoCompleteHighlightPos.isEmpty()
|
||||
&& m_autoCompleteHighlightPos.last() != cursor;
|
||||
};
|
||||
if (!m_keepAutoCompletionHighlight && !q->hasFocus() && popAutoCompletion()) {
|
||||
if ((!m_keepAutoCompletionHighlight && !q->hasFocus()) || popAutoCompletion()) {
|
||||
while (popAutoCompletion())
|
||||
m_autoCompleteHighlightPos.pop_back();
|
||||
updateAutoCompleteHighlight();
|
||||
|
Reference in New Issue
Block a user