Skip to content

Commit 6d5c3be

Browse files
committed
Fix center positioning of tab
1 parent 0ddfe2b commit 6d5c3be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vs/workbench/browser/parts/editor/editorCommands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ function _moveActiveTab(args: ActiveEditorMoveArguments, activeEditor: IEditor,
101101
index = index + args.value;
102102
break;
103103
case ActiveEditorMovePositioning.CENTER:
104-
index = Math.round(editorGroup.count / 2);
104+
index = Math.round(editorGroup.count / 2) - 1;
105105
break;
106106
case ActiveEditorMovePositioning.POSITION:
107107
index = args.value - 1;

0 commit comments

Comments
 (0)