I have overloaded cursorStartPosition to be too many different things.
#805 aperta il 27 set 2016
Metriche repository
- Star
- (12.664 stelle)
- Metriche merge PR
- (Metriche PR in attesa)
Descrizione
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.