forked from qt-creator/qt-creator
FakeVim: Fix goto next/previous split
Fixes: QTCREATORBUG-22397 Change-Id: Ibdae1d53d9d77dd982b871aa22585bdf0354d84f Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -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";
|
||||
|
@@ -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>")
|
||||
|
Reference in New Issue
Block a user