danirod / cartero

Make HTTP requests and test APIs
https://cartero.danirod.es
GNU General Public License v3.0
415 stars 31 forks source link

Fix word wraping on long lines without spaces #69

Closed danirod closed 3 months ago

danirod commented 3 months ago

As described in https://github.com/danirod/cartero/issues/67, by default if a long line has no spaces, a Gtk TextView cannot find a break point for the word wrapping. The solution is to use WordChar, which uses characters as a fallback if a line has no spaces and it cannot physically break by word.