Skip to content

Commit

Permalink
Merge pull request #1809 from Chillee/1803
Browse files Browse the repository at this point in the history
Fixed #1803: zc automatically reopens folds if the fold is performed in the middle.
  • Loading branch information
Chillee authored Jun 9, 2017
2 parents 554ab97 + 387d3a6 commit c69f1b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/actions/commands/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1521,7 +1521,7 @@ class CommandCloseFold extends CommandFold {
public async exec(position: Position, vimState: VimState): Promise<VimState> {
let timesToRepeat = vimState.recordedState.count || 1;
await vscode.commands.executeCommand("editor.fold", {levels: timesToRepeat, direction: "up"});

vimState.allCursors = await allowVSCodeToPropagateCursorUpdatesAndReturnThem();
return vimState;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/actions/motion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ export class MarkMovement extends BaseMovement {


@RegisterAction
class MoveLeft extends BaseMovement {
export class MoveLeft extends BaseMovement {
keys = ["h"];

public async execAction(position: Position, vimState: VimState): Promise<Position> {
Expand Down Expand Up @@ -790,7 +790,7 @@ class MoveScreenLineCenter extends MoveByScreenLine {
}

@RegisterAction
class MoveUpByScreenLine extends MoveByScreenLine {
export class MoveUpByScreenLine extends MoveByScreenLine {
modes = [ModeName.Insert, ModeName.Normal, ModeName.Visual];
keys = [["g", "k"],
["g", "<up>"]];
Expand Down

0 comments on commit c69f1b5

Please sign in to comment.