sakhnik / nvim-ui

gtk4 GUI for neovim
MIT License
48 stars 0 forks source link

Get cursor position from Pango layout #47

Open sakhnik opened 2 years ago

sakhnik commented 2 years ago

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.