From 78a5b42942588a815069eb714de8bdbb99b886c1 Mon Sep 17 00:00:00 2001 From: hjk Date: Thu, 12 Dec 2019 16:14:51 +0100 Subject: [PATCH] FakeVim: Fix goto next/previous split Fixes: QTCREATORBUG-22397 Change-Id: Ibdae1d53d9d77dd982b871aa22585bdf0354d84f Reviewed-by: Christian Stenger --- src/plugins/coreplugin/coreconstants.h | 2 -- src/plugins/fakevim/fakevimplugin.cpp | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/plugins/coreplugin/coreconstants.h b/src/plugins/coreplugin/coreconstants.h index 8d2e66d915b..1f22df37f7e 100644 --- a/src/plugins/coreplugin/coreconstants.h +++ b/src/plugins/coreplugin/coreconstants.h @@ -125,8 +125,6 @@ const char CLOSE_ALTERNATIVE[] = "QtCreator.Close_Alternative"; // temporary const char CLOSEALL[] = "QtCreator.CloseAll"; const char CLOSEOTHERS[] = "QtCreator.CloseOthers"; const char CLOSEALLEXCEPTVISIBLE[] = "QtCreator.CloseAllExceptVisible"; -const char GOTONEXT[] = "QtCreator.GotoNext"; -const char GOTOPREV[] = "QtCreator.GotoPrevious"; const char GOTONEXTINHISTORY[] = "QtCreator.GotoNextInHistory"; const char GOTOPREVINHISTORY[] = "QtCreator.GotoPreviousInHistory"; const char GO_BACK[] = "QtCreator.GoBack"; diff --git a/src/plugins/fakevim/fakevimplugin.cpp b/src/plugins/fakevim/fakevimplugin.cpp index 29defad5739..211ccb67de2 100644 --- a/src/plugins/fakevim/fakevimplugin.cpp +++ b/src/plugins/fakevim/fakevimplugin.cpp @@ -1675,11 +1675,11 @@ void FakeVimPluginPrivate::editorOpened(IEditor *editor) if (key == "C" || key == "") triggerAction(Core::Constants::REMOVE_CURRENT_SPLIT); else if (key == "N" || key == "") - triggerAction(Core::Constants::GOTONEXT); + triggerAction(Core::Constants::GOTO_NEXT_SPLIT); else if (key == "O" || key == "") keepOnlyWindow(); else if (key == "P" || key == "") - triggerAction(Core::Constants::GOTOPREV); + triggerAction(Core::Constants::GOTO_PREV_SPLIT); else if (key == "S" || key == "") triggerAction(Core::Constants::SPLIT); else if (key == "V" || key == "")