mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-27 10:41:50 +02:00
SynEdit: Fixed eoNoSelection
git-svn-id: trunk@21018 -
This commit is contained in:
parent
a2ad649879
commit
505244a52c
@ -1102,6 +1102,7 @@ type
|
||||
property MouseLinkColor;
|
||||
property LineHighlightColor;
|
||||
{$ENDIF}
|
||||
property DefaultSelectionMode;
|
||||
property SelectionMode;
|
||||
property TabWidth;
|
||||
property WantTabs;
|
||||
@ -6756,7 +6757,7 @@ begin
|
||||
if (eoShowSpecialChars in ChangedOptions) and HandleAllocated then
|
||||
Invalidate;
|
||||
if (eoNoSelection in ChangedOptions) then
|
||||
FBlockSelection.Enabled := eoNoSelection in fOptions;
|
||||
FBlockSelection.Enabled := not(eoNoSelection in fOptions);
|
||||
fUndoList.GroupUndo := eoGroupUndo in fOptions;
|
||||
|
||||
(* Deal with deprecated values
|
||||
|
@ -1110,7 +1110,7 @@ procedure TSynEditSelection.SetEnabled(const Value : Boolean);
|
||||
begin
|
||||
if FEnabled = Value then exit;
|
||||
FEnabled := Value;
|
||||
if not Enabled then SetStartLineBytePos(EndLineBytePos);
|
||||
if not Enabled then SetStartLineBytePos(StartLineBytePos);
|
||||
end;
|
||||
|
||||
procedure TSynEditSelection.SetStartLineBytePos(Value : TPoint);
|
||||
|
Loading…
Reference in New Issue
Block a user