mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-10-26 05:21:33 +01:00
SynEdit: Fix smart unindent obeys read-only
git-svn-id: trunk@22686 -
This commit is contained in:
parent
fa76b5032d
commit
776f474483
@ -233,6 +233,7 @@ begin
|
|||||||
if (Command = ecDeleteLastChar) and
|
if (Command = ecDeleteLastChar) and
|
||||||
(FAutoIndent) and
|
(FAutoIndent) and
|
||||||
(ACaret.CharPos > 1) and
|
(ACaret.CharPos > 1) and
|
||||||
|
(not TSynEdit(FCurrentEditor).ReadOnly) and
|
||||||
( (not TSynEdit(FCurrentEditor).SelAvail) or
|
( (not TSynEdit(FCurrentEditor).SelAvail) or
|
||||||
(eoPersistentBlock in TSynEdit(FCurrentEditor).Options2) ) and
|
(eoPersistentBlock in TSynEdit(FCurrentEditor).Options2) ) and
|
||||||
(GetIndentForLine(FCurrentEditor, ACaret.LineText, True) = ACaret.CharPos - 1)
|
(GetIndentForLine(FCurrentEditor, ACaret.LineText, True) = ACaret.CharPos - 1)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user