summaryrefslogtreecommitdiffstats
path: root/otherlibs/labltk/browser/editor.ml
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/labltk/browser/editor.ml')
-rw-r--r--otherlibs/labltk/browser/editor.ml6
1 files changed, 4 insertions, 2 deletions
diff --git a/otherlibs/labltk/browser/editor.ml b/otherlibs/labltk/browser/editor.ml
index 3fe8da159..fe35cf70b 100644
--- a/otherlibs/labltk/browser/editor.ml
+++ b/otherlibs/labltk/browser/editor.ml
@@ -395,14 +395,16 @@ class editor ~top ~menus = object (self)
error_messages <- Typecheck.f (List.hd windows)
method lex () =
- Toplevel.configure top ~cursor:(`Xcursor "watch");
+ List.iter [ Widget.default_toplevel; top ]
+ ~f:(Toplevel.configure ~cursor:(`Xcursor "watch"));
Text.configure current_tw ~cursor:(`Xcursor "watch");
ignore (Timer.add ~ms:1 ~callback:
begin fun () ->
Text.tag_remove current_tw ~tag:"error" ~start:tstart ~stop:tend;
Lexical.tag current_tw;
Text.configure current_tw ~cursor:(`Xcursor "xterm");
- Toplevel.configure top ~cursor:(`Xcursor "")
+ List.iter [ Widget.default_toplevel; top ]
+ ~f:(Toplevel.configure ~cursor:(`Xcursor ""))
end)
method save_text ?name:l txt =