diff --git a/src/plugins/coreplugin/editormanager/editorview.cpp b/src/plugins/coreplugin/editormanager/editorview.cpp index 55d98f395e465a6a1bcdd4ee968f17c4e4b77ce3..264dfc5b5008cfaf82cd66dfd4ae3dcf92a21189 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);