Skip to content

Commit

Permalink
Tweak comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnlaan committed Oct 11, 2024
1 parent a959c5a commit 0be2b61
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Projects/Src/IDE.MainForm.pas
Original file line number Diff line number Diff line change
Expand Up @@ -2910,9 +2910,9 @@ function TMainForm.MultipleSelectionPaste(const AMemo: TIDEScintEdit): Boolean;
begin
{ Scintilla doesn't yet properly support multiple selection paste. Handle it
here, VSCode style: if there's multiple selections and the paste text has the
same amount of lines then paste 1 line per selection. Otherwise do nothing
to allow Scintilla's default behaviour (which is to paste all lines into
each selection if SC_MULTIPASTE_EACH is on). }
same amount of lines then paste 1 line per selection. Otherwise paste all lines
into each selection. For the latter we don't need handling here: this is
Scintilla's default behaviour if SC_MULTIPASTE_EACH is on. }
Result := False;
var SelectionCount := AMemo.SelectionCount;
if SelectionCount > 1 then begin
Expand Down

0 comments on commit 0be2b61

Please sign in to comment.