mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 17:15:58 +02:00
SynEdit: Fixed group undo for smart-unindent
git-svn-id: trunk@22581 -
This commit is contained in:
parent
558e3511f9
commit
e706efaedb
@ -237,6 +237,8 @@ begin
|
||||
(eoPersistentBlock in TSynEdit(FCurrentEditor).Options2) ) and
|
||||
(GetIndentForLine(FCurrentEditor, ACaret.LineText, True) = ACaret.CharPos - 1)
|
||||
then begin
|
||||
FCurrentLines.UndoList.CurrentReason := ecSmartUnindent;
|
||||
|
||||
UnIndentLine(ACaret, x);
|
||||
ACaret.CharPos := x;
|
||||
Command := ecNone;
|
||||
|
@ -236,6 +236,7 @@ const
|
||||
ecLineBreak = 509; // Break line at current position, move caret to new line
|
||||
ecInsertLine = 510; // Break line at current position, leave caret
|
||||
ecChar = 511; // Insert a character at current position
|
||||
ecSmartUnindent = 512; // NOT regocniced as command, used for group-undo, set by beautifier
|
||||
|
||||
ecImeStr = 550; // Insert character(s) from IME
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user