Skip to content

Commit

Permalink
compatible with mew_vi 0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
kandu committed May 30, 2020
1 parent 7b345a1 commit 2edd22c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lambda-term.opam
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ depends: [
"zed" {>= "3.0.0" & < "4.0"}
"camomile" {>= "1.0.1"}
"lwt_react"
"mew_vi" {>= "0.4.0" & < "0.5.0"}
"mew_vi" {>= "0.5.0" & < "0.6.0"}
"dune" {>= "1.1.0"}
]
synopsis: "Terminal manipulation library for OCaml"
Expand Down
2 changes: 2 additions & 0 deletions src/lTerm_read_line.ml
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,8 @@ object(self)

val mutable vi_thread= None

method vi_state= vi_state

method set_editor_mode mode =
set_editor_mode mode;
match mode with
Expand Down
3 changes: 3 additions & 0 deletions src/lTerm_read_line.mli
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,9 @@ class virtual ['a] term : LTerm.t -> object
method set_editor_mode : LTerm_editor.mode -> unit
(** Set the current editor mode. *)

method vi_state : LTerm_vi.state
(** Get the current vi_state . *)

method bind : LTerm_key.t list -> action list -> unit

method draw_update : unit Lwt.t
Expand Down

0 comments on commit 2edd22c

Please sign in to comment.