From c23d63fbe55f0ee8daf41a4263f6113871002948 Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Fri, 20 Feb 2015 03:52:41 +0100 Subject: [PATCH] fix, sync-edit icon hidden when editing a temp file --- src/ce_editor.pas | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ce_editor.pas b/src/ce_editor.pas index 0aef4e06..42f9c753 100644 --- a/src/ce_editor.pas +++ b/src/ce_editor.pas @@ -35,7 +35,6 @@ type fKeyChanged: boolean; fDoc: TCESynMemo; // TODO-cbugfix: syncro-edit partially broken, undetermined condition - // TODO-cbugfix: syncro-edit icon hidden after deletion, if doc is saved (as temp file, by the static explorer) fSyncEdit: TSynPluginSyncroEdit; tokLst: TLexTokenList; errLst: TLexErrorList; @@ -421,6 +420,12 @@ begin // tokLst.Clear; errLst.Clear; + // when a widget saves a temp file & syncro mode is on: + // - editor is saved + // - gutter is updated (green bar indicating a saved block) + // - syncroedit icon is hidden + if fSyncEdit.Active then + fDoc.Refresh; end; {$ENDREGION}