Since a change always results in a cursor movement
This is not always true. If the user has a two-line selection (0, 0) through (2, 0) and presses Tab or Shift+Tab, then the text will change, but the selection will remain the same.
I ran into this edge case while working on the vscode extension.
On when to process text:
This is not always true. If the user has a two-line selection
(0, 0)
through(2, 0)
and presses Tab or Shift+Tab, then the text will change, but the selection will remain the same.I ran into this edge case while working on the vscode extension.