diff --git a/src/plugins/fakevim/fakevimplugin.cpp b/src/plugins/fakevim/fakevimplugin.cpp index 3c32384aa05..09148aa5793 100644 --- a/src/plugins/fakevim/fakevimplugin.cpp +++ b/src/plugins/fakevim/fakevimplugin.cpp @@ -1550,6 +1550,14 @@ void FakeVimPluginPrivate::editorOpened(IEditor *editor) if (!editor) return; + if (m_editorToHandler.contains(editor)) { + // We get here via the call from the duplicated handler in case + // it was triggered by triggerAction(Core::Constants::SPLIT). + // On the other hand, we need the path from there to support the + // case of manual calls to IEditor::duplicate(). + return; + } + QWidget *widget = editor->widget(); if (!widget) return;