Open christianparpart opened 6 months ago
Behavior changed after https://github.com/contour-terminal/contour/pull/1501 PR but bug is still present
Bug is happening during the inflation of the line, emoji use double width and therefore can not be split into two independent cells, and we end up in corrupted state when part of the emoji is inside one cell, and another part is in another cell with the next character, so for this case after inflation we have 1 -> A 2 -> half of the emoji 3 -> half of the emoji + B
Refs #1215.
This is properly printed to the terminal, but as soon as going into input normal mode and moving the cursor over/across the printed line, will make the emoji look narrow.
The bug most likely is in the inflation code, that is going to be rewritten in libunicode ASAP anyways. But we keep this ticket as a tracker to not forget about it.