From 7d8d11788a5b1e04c939a826c632ee55cad489ca Mon Sep 17 00:00:00 2001 From: Horace He Date: Tue, 6 Jun 2017 10:01:33 -0700 Subject: [PATCH] Fixed #1803 --- src/actions/commands/actions.ts | 2 +- src/actions/motion.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/actions/commands/actions.ts b/src/actions/commands/actions.ts index ef5311cc0f7..0c1f5ead845 100644 --- a/src/actions/commands/actions.ts +++ b/src/actions/commands/actions.ts @@ -1521,7 +1521,7 @@ class CommandCloseFold extends CommandFold { public async exec(position: Position, vimState: VimState): Promise { let timesToRepeat = vimState.recordedState.count || 1; await vscode.commands.executeCommand("editor.fold", {levels: timesToRepeat, direction: "up"}); - + vimState.allCursors = await allowVSCodeToPropagateCursorUpdatesAndReturnThem(); return vimState; } } diff --git a/src/actions/motion.ts b/src/actions/motion.ts index b9368b25377..838478363bd 100644 --- a/src/actions/motion.ts +++ b/src/actions/motion.ts @@ -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 { @@ -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", ""]];