I don't have much Scintilla experience, but there are a few options I see One is to make them behave just like the singular SetSelectionStart/End functions, for consistency. However, I don't like the assumption they make "that the anchor position is less than the current position." My intuition for the behaviour of setting the start position is this: Pick the side (caret or anchor) of the selection is currently at the start of the selection, defaulting to the anchor if the selection is empty. Move...
Hi Neil The desired solution is that SCI_SETSELECTIONNSTART sets the selection start point, as the function name implies. Same for SCI_SETSELECTIONNEND. Currently they set the anchor and caret respectively, which is a problem as the anchor isn't always at the start and the caret isn't always at the end. The main justification for these calls is symmetry Exactly - the issue is that they currently aren't symmetric. In other words, the Set call does not modify the property that the Get call retriev...
SCI_SETSELECTIONNSTART and END set anchor and caret instead