nvim-ui icon indicating copy to clipboard operation
nvim-ui copied to clipboard

Get cursor position from Pango layout

Open sakhnik opened this issue 1 year ago • 0 comments

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.

sakhnik avatar Jul 26 '22 13:07 sakhnik