diff --git a/src/plugins/coreplugin/editormanager/editorview.cpp b/src/plugins/coreplugin/editormanager/editorview.cpp index 55d98f395e4..264dfc5b500 100644 --- a/src/plugins/coreplugin/editormanager/editorview.cpp +++ b/src/plugins/coreplugin/editormanager/editorview.cpp @@ -857,7 +857,9 @@ void SplitterOrView::split(Qt::Orientation orientation) m_layout->setCurrentWidget(m_splitter); view->view()->copyNavigationHistoryFrom(m_view); + view->view()->setCurrentEditor(view->view()->currentEditor()); otherView->view()->copyNavigationHistoryFrom(m_view); + otherView->view()->setCurrentEditor(otherView->view()->currentEditor()); if (m_view && !m_isRoot) { em->emptyView(m_view);