Tag CursorPosition with the seqno of the cursor move instead. This should avoid over-invalidating lines and the selection if it was just the cursor that moved.
Tag CursorPosition with the seqno of the cursor move instead. This should avoid over-invalidating lines and the selection if it was just the cursor that moved.