Ver código fonte

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 ano atrás
pai
commit
ad7f830baf
1 arquivos alterados com 0 adições e 1 exclusões
  1. 0 1
      Components/ScintEdit.pas

+ 0 - 1
Components/ScintEdit.pas

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