Commit 8037d5e0 authored by hjk's avatar hjk

FakeVim: Properly recognize tabp...tabprevious

Note that this does not fully solve the linked issue as the
triggered GOTOPREVINHISTORY action does not have the same
behavior as :tabprevious

Task-number: QTCREATORBUG-18843
Change-Id: I26a719f77d2c1727bb18da46e13f5a0be48473bc
Reviewed-by: default avatarLukas Holecek <>
Reviewed-by: Christian Stenger's avatarChristian Stenger <>
parent 201a09b5
......@@ -4422,7 +4422,7 @@ bool FakeVimHandler::Private::handleNoSubMode(const Input &input)
} else if (g.gflag &&'t')) {
} else if (g.gflag &&'T')) {
} else if (input.isControl('t')) {
} else if (!g.gflag &&'u') && !isVisualMode()) {
......@@ -5565,7 +5565,7 @@ bool FakeVimHandler::Private::handleExSubstituteCommand(const ExCommand &cmd)
bool FakeVimHandler::Private::handleExTabNextCommand(const ExCommand &cmd)
if (cmd.cmd != "tabnext" && cmd.cmd != "tabn")
if (!cmd.matches("tabn", "tabnext"))
return false;
emit q->tabNextRequested(q);
......@@ -5574,7 +5574,7 @@ bool FakeVimHandler::Private::handleExTabNextCommand(const ExCommand &cmd)
bool FakeVimHandler::Private::handleExTabPreviousCommand(const ExCommand &cmd)
if (cmd.cmd != "tabprevious" && cmd.cmd != "tabp")
if (!cmd.matches("tabp", "tabprevious"))
return false;
emit q->tabPreviousRequested(q);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment