ocaml-community / zed

Abstract engine for text edition in OCaml
Other
121 stars 16 forks source link

bugfix: Zed_utf8.unsafe_extract_prev: ofs stepping #21

Closed kandu closed 5 years ago

kandu commented 5 years ago

Zed_utf8.unsafe_extract_prev stept reversedly for utf8 character of which the length is 4 bytes.

This PR fixes it and therefore resolves https://github.com/ocaml-community/utop/issues/287