Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command 'O' does not indent automatically with an incomplete line #4781

Closed
MrHate opened this issue May 2, 2020 · 1 comment
Closed

Command 'O' does not indent automatically with an incomplete line #4781

MrHate opened this issue May 2, 2020 · 1 comment

Comments

@MrHate
Copy link

MrHate commented May 2, 2020

Describe the bug
As the title goes.

To Reproduce

  1. Code an incomplete line in a C++ source file(and it is indented);
  2. Press 'O';
  3. See error.

Expected behavior
Create a new line with the same indentation.

Screenshots
屏幕录制2020-05-02-18 59 26

Environment

  • Extension (VsCodeVim) version: 1.13.1
  • VSCode version: 1.44.2
  • OS: macOS Catalina 10.15.4
@J-Fields
Copy link
Member

J-Fields commented May 2, 2020

This is ultimately caused by the same issue as #1017 (comment). O basically just calls editor.action.insertLineBefore, and the resulting indentation is determined by the language extension.

@J-Fields J-Fields closed this as completed May 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants