Skip to content

Commit

Permalink
Fixes #2023: De-indenting does not update visible workspace position …
Browse files Browse the repository at this point in the history
…to show cursor
  • Loading branch information
alexdima committed Apr 10, 2017
1 parent 734a79b commit 4d23113
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/vs/editor/common/controller/cursor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1488,13 +1488,11 @@ export class Cursor extends EventEmitter {

private _indent(ctx: IMultipleCursorOperationContext): boolean {
this._applyEditForAll(ctx, (cursor) => TypeOperations.indent(this.context.config, this.context.model, cursor.modelState));
ctx.shouldRevealHorizontal = false;
return true;
}

private _outdent(ctx: IMultipleCursorOperationContext): boolean {
this._applyEditForAll(ctx, (cursor) => TypeOperations.outdent(this.context.config, this.context.model, cursor.modelState));
ctx.shouldRevealHorizontal = false;
return true;
}

Expand Down

0 comments on commit 4d23113

Please sign in to comment.