X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2Fmatita.ml;h=d0959e453b0342ed9ca49623c7514fb9f8819793;hb=349a0e23813a7f33853e1f8fe48230276ac22934;hp=a422ece1655ba7321d9ce31d1cb5fb68aaf74d0a;hpb=6915a58db8db95966b9519d1d984d895e7b5fe39;p=helm.git diff --git a/helm/matita/matita.ml b/helm/matita/matita.ml index a422ece16..d0959e453 100644 --- a/helm/matita/matita.ml +++ b/helm/matita/matita.ml @@ -68,7 +68,7 @@ let script = MatitaGui.interactive_uri_choice ~selection_mode:`SINGLE ~title:"Matita: URI chooser" ~msg:"Select the URI" ~hide_uri_entry:true - ~hide_try:true ~ok_label:"_Apply" + ~hide_try:true ~ok_label:"_Apply" ~ok_action:`SELECT ~copy_cb:(fun s -> gui#main#scriptTextView#buffer#insert ("\n"^s^"\n")) () ~id:"boh?" uris with MatitaTypes.Cancel -> []) @@ -169,9 +169,12 @@ let _ = if Filename.basename Sys.argv.(0) = "cicbrowser" then begin (* cicbrowser *) Helm_registry.set "matita.mode" "cicbrowser"; let browser = MatitaMathView.cicBrowser () in - try - browser#load (`Uri Sys.argv.(1)) - with Invalid_argument _ -> () + let entry = + try + `Uri Sys.argv.(1) + with Invalid_argument _ -> `Dir "cic:/" + in + browser#load entry end else begin (* matita *) Helm_registry.set "matita.mode" "matita"; gui#main#mainWin#show ();