mjakeman / text-engine

A lightweight rich text framework for GTK
Other
21 stars 1 forks source link

Rework how paragraph breaks are handled #26

Open mjakeman opened 2 years ago

mjakeman commented 2 years ago

There's a very noticeable bug with the current implementation of paragraph breaks where the cursor cannot be placed on the final index of a paragraph using the mouse or up/down navigation. It can however be done using home/end.

This is due to Pango's internal handling of paragraphs, but isn't something we can easily work around. It might be an idea to use an invisible paragraph break character (I'm sure there's something in unicode) and drop our special casing altogether.