From c612f1e4e1d1ad2ef6592d47aca05af3fc21f698 Mon Sep 17 00:00:00 2001 From: martin Date: Wed, 25 Mar 2009 20:41:06 +0000 Subject: [PATCH] SynEdit: fixed group-undo. Group-Undo would prevent the editor from being marked as "changed" in some cases if editing was continued after saving. git-svn-id: trunk@19102 - --- components/synedit/synedittextbase.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/synedit/synedittextbase.pas b/components/synedit/synedittextbase.pas index bd2cf4aaca..97d93eacfa 100644 --- a/components/synedit/synedittextbase.pas +++ b/components/synedit/synedittextbase.pas @@ -706,7 +706,7 @@ begin if (not FUndoGroup.Items[FUndoGroup.Count - 1].IsCaretInfo) and assigned(FOnNeedCaretUndo) then FUndoGroup.Add(FOnNeedCaretUndo()); - if (fItems.Count > 0) and FGroupUndo and + if (fItems.Count > 0) and FGroupUndo and (not IsTopMarkedAsUnmodified) and FUndoGroup.CanMergeWith(TSynEditUndoGroup(fItems[fItems.Count - 1])) then begin FUndoGroup.MergeWith(TSynEditUndoGroup(fItems[fItems.Count - 1]));