Dot `.` command with multi-cursor operates multiple times on first line
@J-Fields is already working on this.
Since May 13, 2020.
- Dominant language
- TypeScript
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 6
Description
Using the dot operator (.) to repeat keystrokes in multi-cursor mode results in those keystrokes getting applied multiple times to the line of the first cursor.
To Reproduce
-
Create 3 lines:
aaa aaaa aaaaa
bbb bbbb bbbbb
ccc cccc ccccc -
Enable multiple cursors at the start of each line.
-
Move to start of second word and prepend '123' with key strokes: w i 123 esc
-
Move to start of the third word with keystroke: w
-
Attempt to insert '123' with keystroke: . (period)
Expected behavior
'123' would be prepended to the second word of each line with text now as:
aaa 123aaaa 123aaaaa
bbb 123bbbb 123bbbbb
ccc 123cccc 123ccccc
Actual Results*
aaa 123aaaa 121212333aaaaa
bbb 123bbbb bbbbb
ccc 123cccc ccccc
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.