Commit 9ced67bd authored by mae's avatar mae
Browse files

workaround for the occasional auto-unfold when doing pageUp/pageDown

parent 58b009d3
......@@ -1225,7 +1225,9 @@ void BaseTextEditor::setTextCursor(const QTextCursor &cursor)
{
// workaround for QTextControl bug
bool selectionChange = cursor.hasSelection() || textCursor().hasSelection();
QPlainTextEdit::setTextCursor(cursor);
QTextCursor c = cursor;
c.setVisualNavigation(true);
QPlainTextEdit::setTextCursor(c);
if (selectionChange)
slotSelectionChanged();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment