Closed pintassilgo closed 7 months ago
https://wiki.freepascal.org/CudaText#Console_panel
It's busy: Double-click on memo lines starting with ">>>" repeats entered command (after ">>>" symbols).
Maybe at least on not ">>>" lines? If not intended to change the repeat command to other combination (like right click, middle click or single click).
procedure TfmConsole.MemoOnClickDbl(Sender: TObject; var AHandled: boolean);
var
s: string;
n: integer;
begin
n:= EdMemo.Carets[0].PosY;
if EdMemo.Strings.IsIndexValid(n) then
begin
s:= EdMemo.Strings.Lines[n];
if StartsStr(cConsolePrompt, s) then
begin
Delete(s, 1, Length(cConsolePrompt));
DoRunLine(s);
end
else
DoNavigate(Self);
end;
AHandled:= true;
end;
so, if not on >>> line, it runs 'navigate to error' command. it may run it on ANY line.
The universal behavior on dbclicking a text is to select the word under mouse. It doesn't work in console output, only triple click to select the entire line.