Skip to content

Replace mode doesn't handle spaces properly #115

@spectral54

Description

@spectral54

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions