mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 19:52:26 +02: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
|
||||
(FAutoIndent) and
|
||||
(ACaret.CharPos > 1) and
|
||||
(not TSynEdit(FCurrentEditor).ReadOnly) and
|
||||
( (not TSynEdit(FCurrentEditor).SelAvail) or
|
||||
(eoPersistentBlock in TSynEdit(FCurrentEditor).Options2) ) and
|
||||
(GetIndentForLine(FCurrentEditor, ACaret.LineText, True) = ACaret.CharPos - 1)
|
||||
|
Loading…
Reference in New Issue
Block a user