瀏覽代碼

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 年之前
父節點
當前提交
ad7f830baf
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      Components/ScintEdit.pas

+ 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;