X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fmatita%2FmatitaScript.ml;h=6bf9e5e026ed6dc97a101c9ecde6a219e624c12c;hb=b0dce88ff4c55b5f811ce9e183418479f7d34d2a;hp=931fb049a492d1befc65be17e7a65edd71ad4501;hpb=90f5cf2abe808c8343847e1e910918440fb27410;p=helm.git diff --git a/matita/matita/matitaScript.ml b/matita/matita/matitaScript.ml index 931fb049a..6bf9e5e02 100644 --- a/matita/matita/matitaScript.ml +++ b/matita/matita/matitaScript.ml @@ -829,12 +829,12 @@ object (self) method private _saveToBackupFile () = if buffer#modified then begin - let f = self#filename in + let f = self#filename ^ "~" in let oc = open_out f in output_string oc (buffer#get_text ~start:buffer#start_iter ~stop:buffer#end_iter ()); close_out oc; - HLog.debug ("backup " ^ f ^ " saved") + HLog.debug ("backup " ^ f ^ " saved") end method private reset_buffer =