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

Replace mode doesn't handle spaces properly #115

Open
spectral54 opened this issue Jul 20, 2023 · 0 comments
Open

Replace mode doesn't handle spaces properly #115

spectral54 opened this issue Jul 20, 2023 · 0 comments

Comments

@spectral54
Copy link

spectral54 commented Jul 20, 2023

After entering replace mode (Shift+R), pressing space in vim overwrites the character under the cursor with a space. In monaco-vim, it inserts a space, making the line one character longer.

This also causes backspace to misbehave; backspace doesn't remove the space, so if I have the text:

aaaa

and I position the cursor over the second character and type b, space, b, I have:

ab ba
    ^ cursor on the final a, line is now 5 characters long instead of 4

and I then hit backspace three or more times, I'm left with:

abaaa
  ^  cursor is here, _after_ the b. 

Note that the backspace correctly brought back the two 'a's that I overwrote, but doesn't let me undo the first 'b' that I used to overwrite.

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

1 participant