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

Handle backspace on first character of all-space line correctly #3916

Merged
merged 3 commits into from Jul 24, 2019
Merged

Handle backspace on first character of all-space line correctly #3916

merged 3 commits into from Jul 24, 2019

Conversation

J-Fields
Copy link
Member

What this PR does / why we need it:
On an all-spaces line, you press backspace in insert mode, it'll cause an error. Now this corner case is accounted for.

Which issue(s) this PR fixes
Fixes #3915

Copy link
Member

@jpoon jpoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tiny nit, otherwise LGTM.

@jpoon jpoon merged commit bf5e24d into VSCodeVim:master Jul 24, 2019
@J-Fields J-Fields deleted the backspace-beginning-whitespace branch July 24, 2019 17:00
stevenguh pushed a commit to stevenguh/Vim that referenced this pull request Aug 27, 2019
…deVim#3916)

* Handle backspace on first character of all-space line correctly

Fixes VSCodeVim#3915

* Code review: Use \s in regex
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

Successfully merging this pull request may close these issues.

At beginning of line with all spaces, backspace causes error
2 participants