Description
After I used λ as a prompt message, ocaml-linenoise displayed a cursor at a wierd position.
For example, when I typed abc (without a space), my terminal displays something like this.
λ abc _
^ Here is a weird space
What you expected
ocaml-linenoise handles λ (and any other UTF-8 encoded characters) in a proper way so that it places characters and the cursor at expected positions like the following.
λ abc_
^ This underscore is the cursor.
Reproduction
https://github.com/Ailrun/ocaml-linenoise-issue-13
This repository also includes instructions to reproduce the bug.
Description
After I used
λas a prompt message,ocaml-linenoisedisplayed a cursor at a wierd position.For example, when I typed
abc(without a space), my terminal displays something like this.What you expected
ocaml-linenoisehandlesλ(and any other UTF-8 encoded characters) in a proper way so that it places characters and the cursor at expected positions like the following.Reproduction
https://github.com/Ailrun/ocaml-linenoise-issue-13
This repository also includes instructions to reproduce the bug.