VSCodeVim/Vim

I have overloaded cursorStartPosition to be too many different things.

Open

#805 ouverte le 27 sept. 2016

Voir sur GitHub
 (2 commentaires) (0 réactions) (0 assignés)TypeScript (1 271 forks)batch import
help wantedkind/refactorsize/L

Métriques du dépôt

Stars
 (12 664 stars)
Métriques de merge PR
 (Merge moyen 9j 13h) (7 PRs mergées en 30 j)

Description

Currently cursorStartPosition and cursorPosition can mean both "the start and end of the current selection" and "the range over which to apply an operator".

These are actually totally different! It's especially bad when you apply an operator and then suddenly you lose the tracked position of the cursor.

Move "the range over which to apply an operator" into a new field on RecordedState and use that instead of cursorStartPosition and cursorPosition. Continue using cursorStartPosition and cursorPosition for selections and cursor locations.

My current problem is running ci( on |(abcd), which promptly forgets the position of the cursor and can't (because of the overloading) figure out where to place it.

Guide contributeur