Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
xconverge authored and Andrew Cobby committed May 3, 2017
1 parent 0aa7e68 commit 3877a9b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/actions/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4555,8 +4555,13 @@ class ActionVisualReflowParagraph extends BaseCommand {
text: textToReflow,
start: vimState.cursorStartPosition,
end: vimState.cursorPosition,
manuallySetCursorPositions : true
});

// Move cursor to front of line to realign the view
vimState.cursorPosition = vimState.cursorPosition.advancePositionByText(textToReflow).getLineBegin();
vimState.currentMode = ModeName.Normal;

return vimState;
}
}
Expand Down

0 comments on commit 3877a9b

Please sign in to comment.