We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40b2092 commit c6dda3cCopy full SHA for c6dda3c
src/lTerm_read_line.ml
@@ -1163,7 +1163,7 @@ object(self)
1163
(* The main loop. *)
1164
method private loop =
1165
Lwt.pick [
1166
- Lwt.(>|=) (LTerm.read_event term) (fun ev-> Ev ev);
+ (Lwt.pause () >>= fun ()-> Lwt.(>|=) (LTerm.read_event term) (fun ev-> Ev ev));
1167
Lwt.(>|=) (Lwt_mvar.take result) (fun r-> Loop_result r);
1168
Lwt.(>|=) (Lwt_mvar.take self#interrupt) (fun e-> Interrupted e);
1169
]
0 commit comments