forked from qt-creator/qt-creator
EditorManager: add GotoLastEdit action
Done-with: Guillem Miguel <guillemmr@hotmail.com> Done-with: Andre Hartmann <aha_1980@gmx.de> Change-Id: I5059ea4ba8e9aa115cf4d0a90b80a4606779039a Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
committed by
André Hartmann
parent
889f0f4cec
commit
264185245d
@@ -5270,6 +5270,8 @@ void TextEditorWidget::slotCursorPositionChanged()
|
||||
d->m_lastCursorChangeWasInteresting = false;
|
||||
} else if (d->m_contentsChanged) {
|
||||
d->saveCurrentCursorPositionForNavigation();
|
||||
if (EditorManager::currentEditor() && EditorManager::currentEditor()->widget() == this)
|
||||
EditorManager::setLastEditLocation(EditorManager::currentEditor());
|
||||
}
|
||||
|
||||
d->updateHighlights();
|
||||
|
||||
Reference in New Issue
Block a user