Sublime seems to remember the column of the cursor as you move up and down lines. If you reach a line that is shorter than the previous line, the cursor will be positioned at the end of the line. Pressing up or down will return to the previous column (not the column equivalent to the end of that short line). Various actions like typing resets this column memory. I’m not even sure what to call this behavior, so it’s been hard searching for any information about it.
This memory seems to be attached to the Region object, in the xpos() or meta() value. However, this is undocumented. Will this value be documented at some point? On my system, this value appears to be the remembered column number times 7, which is the em_width(). Is it safe to assume all characters are this width?
Would love to have access to this for a plugin I’m writing, but I’m not sure if it’s safe.