Closed
Description
- VSCode Version: 1.9.1
Steps to Reproduce:
- Type the text
XXXXXX
- Select the first
X
- Hit cmd-D multiple times. The selection will grow exponentially:
I expected each cmd-D keypress to select the next X.
Furthermore, the "highlight all" behaves similarly oddly: It will highlight pairs of whatever you selected:
Even weirder, if you replace the text, then undo, any adjacent selections are collapsed (so it doesn't undo the selection properly):
- Type 20 Zs.
- Select one Z and "highlight all". There are now 10 selections of 2 characters each (wrong).
- Type "p" to replacing all of them. You get 10 p's (wrong).
- Undo. There are now 5 selections of 4 characters each (wrong).
- Type "p" to replace all of them again. You get 5 p's (wrong).
- And so on.