diff options
author | Jacques Garrigue <garrigue at math.nagoya-u.ac.jp> | 1999-12-08 08:21:57 +0000 |
---|---|---|
committer | Jacques Garrigue <garrigue at math.nagoya-u.ac.jp> | 1999-12-08 08:21:57 +0000 |
commit | 77d4f18ce657800ebd85530c510521b467d7c3dd (patch) | |
tree | d4ff7e2e660afc0463534306f246fd24f8dbcc69 /otherlibs/labltk/browser/editor.ml | |
parent | 181b12cb95b3361d1fd4b44fa25662c994a9eeb4 (diff) |
changed label_pattern syntax
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2677 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/labltk/browser/editor.ml')
-rw-r--r-- | otherlibs/labltk/browser/editor.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/otherlibs/labltk/browser/editor.ml b/otherlibs/labltk/browser/editor.ml index 9176a7da1..f99845eb3 100644 --- a/otherlibs/labltk/browser/editor.ml +++ b/otherlibs/labltk/browser/editor.ml @@ -522,7 +522,7 @@ end let already_open : editor option ref = ref None -let editor ?:file ?:pos[=0] () = +let editor ?:file ?(:pos=0) () = if match !already_open with None -> false | Some ed -> @@ -535,7 +535,7 @@ let editor ?:file ?:pos[=0] () = already_open := Some ed; if file <> None then ed#reopen :file :pos -let f ?:file ?:pos ?:opendialog[=false] () = +let f ?:file ?:pos ?(:opendialog=false) () = if opendialog then Fileselect.f title:"Open File" action:(function [file] -> editor :file () | _ -> ()) |