Skip to content

Commit

Permalink
Changes tabs to navigate inside the same split (#1677)
Browse files Browse the repository at this point in the history
  • Loading branch information
vinicio authored and jpoon committed May 9, 2017
1 parent a1f8049 commit f691fdc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cmd_line/commands/tab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,17 @@ export class TabCommand extends node.CommandBase {
case Tab.Next:
if (this._arguments.count /** not undefined or 0 */) {
vscode.commands.executeCommand("workbench.action.openEditorAtIndex1");
this.executeCommandWithCount(this._arguments.count! - 1, "workbench.action.nextEditor");
this.executeCommandWithCount(this._arguments.count! - 1, "workbench.action.nextEditorInGroup");
} else {
this.executeCommandWithCount(1, "workbench.action.nextEditor");
this.executeCommandWithCount(1, "workbench.action.nextEditorInGroup");
}
break;
case Tab.Previous:
if (this._arguments.count !== undefined && this._arguments.count <= 0) {
break;
}

this.executeCommandWithCount(this._arguments.count || 1, "workbench.action.previousEditor");
this.executeCommandWithCount(this._arguments.count || 1, "workbench.action.previousEditorInGroup");
break;
case Tab.First:
this.executeCommandWithCount(1, "workbench.action.openEditorAtIndex1");
Expand Down

0 comments on commit f691fdc

Please sign in to comment.