summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2019-12-12 16:14:51 +0100
committerhjk <hjk@qt.io>2019-12-16 11:32:58 +0000
commit78a5b42942588a815069eb714de8bdbb99b886c1 (patch)
treed973caf26caee99e1e8a5bfd89ecf9683b1768cc
parentec43ac04812629b2e76f181a3378cdc382d431cd (diff)
downloadqt-creator-78a5b42942588a815069eb714de8bdbb99b886c1.tar.gz
FakeVim: Fix goto next/previous split
Fixes: QTCREATORBUG-22397 Change-Id: Ibdae1d53d9d77dd982b871aa22585bdf0354d84f Reviewed-by: Christian Stenger <christian.stenger@qt.io>
-rw-r--r--src/plugins/coreplugin/coreconstants.h2
-rw-r--r--src/plugins/fakevim/fakevimplugin.cpp4
2 files changed, 2 insertions, 4 deletions
diff --git a/src/plugins/coreplugin/coreconstants.h b/src/plugins/coreplugin/coreconstants.h
index 8d2e66d915..1f22df37f7 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 29defad573..211ccb67de 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 == "<C-C>")
triggerAction(Core::Constants::REMOVE_CURRENT_SPLIT);
else if (key == "N" || key == "<C-N>")
- triggerAction(Core::Constants::GOTONEXT);
+ triggerAction(Core::Constants::GOTO_NEXT_SPLIT);
else if (key == "O" || key == "<C-O>")
keepOnlyWindow();
else if (key == "P" || key == "<C-P>")
- triggerAction(Core::Constants::GOTOPREV);
+ triggerAction(Core::Constants::GOTO_PREV_SPLIT);
else if (key == "S" || key == "<C-S>")
triggerAction(Core::Constants::SPLIT);
else if (key == "V" || key == "<C-V>")