You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As can be seen in https://asciinema.org/a/AxH57hTJctdztmBaJ2bBTS7nP, characters, which in JavaScript are represented as surrogate pairs, break cursor highlight positioning, due to the position being calculated in terms of JavaScript characters, not Unicode codepoints.
One possible fix is available here; in my testing, that makes such surrogate pair characters work perfectly. (feel free to pull that commit directly to main, modify/copy as needed, or request a PR)
This fix is largely independent of the larger problem around grapheme clusters/wcwidth, but it doesn't make it worse (or, in fact, even makes the cursor be positioned correctly, but that doesn't really mean much if the VT output itself is broken).
The text was updated successfully, but these errors were encountered:
As can be seen in https://asciinema.org/a/AxH57hTJctdztmBaJ2bBTS7nP, characters, which in JavaScript are represented as surrogate pairs, break cursor highlight positioning, due to the position being calculated in terms of JavaScript characters, not Unicode codepoints.
One possible fix is available here; in my testing, that makes such surrogate pair characters work perfectly. (feel free to pull that commit directly to main, modify/copy as needed, or request a PR)
This fix is largely independent of the larger problem around grapheme clusters/wcwidth, but it doesn't make it worse (or, in fact, even makes the cursor be positioned correctly, but that doesn't really mean much if the VT output itself is broken).
The text was updated successfully, but these errors were encountered: