diff --git a/src/plugins/wp/GuiGoal.ml b/src/plugins/wp/GuiGoal.ml
index 77dbf180519ae5cf11a2dbe30e863053121cec0b..6fb5dd22d7e1c924a220c2556714929b4de685e4 100644
--- a/src/plugins/wp/GuiGoal.ml
+++ b/src/plugins/wp/GuiGoal.ml
@@ -548,7 +548,11 @@ class pane (gprovers : GuiConfig.provers) =
               text#clear ;
               let main = ProofEngine.main proof in
               if ProofSession.exists main then begin
-                text#printf "%a@." ProofSession.pp_script_for main ;
+                text#printf
+                  (if ProofEngine.saved proof
+                   then "%a (@{<green>saved@})@."
+                   else "%a (@{<orange>modified@})@.")
+                  ProofSession.pp_script_for main ;
                 text#hrule ;
               end ;
               scripter#tree proof ;