amfora icon indicating copy to clipboard operation
amfora copied to clipboard

Failed emoji ZWJ sequences stick to view

Open luetage opened this issue 4 years ago • 2 comments

I’m gonna try to explain this… I’m using Alacritty, which is unable to display emoji ZWJ sequences, instead it displays all graphemes of the sequence. This is fine, but with Amfora the additional graphemes stick and will continue to display on every page until one of the pages happens to overwrite the line and column the emoji is being displayed on. I thought maybe the view could be cleared somehow before loading a page.

Example page: gemini://freeshell.de/gemlog/2021-09-15.gmi

emoji-sequence

emoji-sticks

I can reproduce this behavior on Gnome terminal.

luetage avatar Sep 18 '21 15:09 luetage

Wow, interesting. I think I've experienced before on Guake and Tilix terminals, but dismissed it as a terminal unicode issue. I have reproduced this on Tilix just now.

Since this is appearing on all these terminals, including Alacritty which iirc is built from scratch, this must be an Amfora issue, or rather an upstream one with cview or tcell.

If I can create a small test case for this that reproduces the bug only using cview, I'll file an issue. Anyone else is welcome to try and create one as well.

makew0rld avatar Sep 18 '21 15:09 makew0rld

To add to this, the residual graphemes are never properly overwritten. After browsing for a while and using the scrollwheel on an almost empty page (new tab), the emoji show up multiplied.

residual-emoji

luetage avatar Sep 18 '21 17:09 luetage