nvim-ui
nvim-ui copied to clipboard
Get cursor position from Pango layout
Some characters are wider than others, for example, ₴
. So cursor appears to be misplaced after such characters.
One could calculate the proper caret position from Pango layout obtained from the label. This could also allow drawing a slanted cursor.