2
0
Эх сурвалжийг харах

Cleanup: remove our ChooseCaretX in SetSelection. We only use SetSelection/SCI_SETSEL for line comment toggling because it's what SciTE does but it doesn't do ChooseCaretX.

TBH I would rather remove this entire function and only keep SetSingleSelection/SCI_SETSELECTION. This is because SCI_SETSEL is one of the functions predating Scintilla's multiple selection support.
Martijn Laan 1 жил өмнө
parent
commit
ad7f830baf

+ 0 - 1
Components/ScintEdit.pas

@@ -1874,7 +1874,6 @@ procedure TScintEdit.SetSelection(const Value: TScintRange);
   different }
 begin
   Call(SCI_SETSEL, Value.StartPos, Value.EndPos);
-  ChooseCaretX;
 end;
 
 procedure TScintEdit.SetSelectionAnchorPosition(Selection: Integer;