adamharrison / lite-xl-terminal

A terminal plugin for lite-xl.
MIT License
41 stars 6 forks source link

Bad position when dealing with *some* multibyte utf8 chars #27

Open Guldoman opened 1 year ago

Guldoman commented 1 year ago

For example pasting んんんんんんんんんんん then deleting it, removes part of the prompt. Log: terminal-んんんんんんんんんんん.log

This happens with other multi-byte chars like , but doesn't with , 𐍈, , ...

adamharrison commented 1 year ago

Agreed. Super odd. Will investigate.

adamharrison commented 1 year ago

Huh. So, when I hit the right arrow key, after emitting one of those, I get ESC [ 2 7 m, BEL BS BS, then the character getting emitted again.

What?

adamharrison commented 1 year ago

Why would it BS twice? Why not once?