SynEdit: Fix smart unindent obeys read-only

git-svn-id: trunk@22686 -
This commit is contained in:
martin 2009-11-19 23:54:52 +00:00
parent fa76b5032d
commit 776f474483

View File

@ -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)