Commit 49b8add4 authored by Christoph Cullmann's avatar Christoph Cullmann 🍨
Browse files

fix goto line centering

force center for any external set cursor position call
BUG: 408418
parent c9cba205
......@@ -1581,7 +1581,7 @@ bool KTextEditor::ViewPrivate::setCursorPositionInternal(const KTextEditor::Curs
x += position.column() - z;
}
m_viewInternal->updateCursor(KTextEditor::Cursor(position.line(), x), false, false, calledExternally);
m_viewInternal->updateCursor(KTextEditor::Cursor(position.line(), x), false, calledExternally /* force center for external calls, see bug 408418 */, calledExternally);
return true;
}
......
Supports Markdown
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