When moving up and down by lines, the editor maintains a target column. At least on Macs. This behavior, BTW, was invented by Emacs over 40 years ago, and it (and other emacs functionality) is built-in to the Mac text widget because a lot of developer at NeXT were emacs users.
If you move by characters or words, left or right on a line, the target column is reset, as you’d hope and expect.
I wrote a command that moves the cursor, too, but it doesn’t cause the target column to be reset as a result. The way I have worked around that in the past was by issuing a move by characters command left and then right. That seemed to do the trick. But that is causing me other problems at the moment and so I am hoping there might be a specific way to tell Sublime, “Please set the target column right now”.
Anyone know anything about this?