forked from qt-creator/qt-creator
EditorManager: Remove QString openEditor(At) overloads
In favor of the FilePath/Link ones. Change-Id: I5caf9e0f8de304ff4ee12329557aa50a6f3a0c69 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -1841,12 +1841,13 @@ void FakeVimPluginPrivate::editorOpened(IEditor *editor)
|
||||
}
|
||||
});
|
||||
|
||||
handler->requestJumpToGlobalMark.connect([this](QChar mark, bool backTickMode, const QString &fileName) {
|
||||
if (IEditor *iedit = EditorManager::openEditor(fileName)) {
|
||||
if (FakeVimHandler *handler = m_editorToHandler.value(iedit, nullptr))
|
||||
handler->jumpToLocalMark(mark, backTickMode);
|
||||
}
|
||||
});
|
||||
handler->requestJumpToGlobalMark.connect(
|
||||
[this](QChar mark, bool backTickMode, const QString &fileName) {
|
||||
if (IEditor *iedit = EditorManager::openEditor(FilePath::fromString(fileName))) {
|
||||
if (FakeVimHandler *handler = m_editorToHandler.value(iedit, nullptr))
|
||||
handler->jumpToLocalMark(mark, backTickMode);
|
||||
}
|
||||
});
|
||||
|
||||
handler->handleExCommandRequested.connect([this, handler](bool *handled, const ExCommand &cmd) {
|
||||
handleExCommand(handler, handled, cmd);
|
||||
|
||||
Reference in New Issue
Block a user