Relevant settings: - long line marker = 72, enabled - indent type = tabs - tab width = 8
I noticed `C-j` sometimes does nothing even though a line is well over the long line marker but adding some more chars to the line occasionally makes it work.
Reproduce (with the setting from above): - open new doc - insert 8 tabs - insert "a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a" - notice the cursor position is 127, but if you select everything it shows "sel: 71" in the status area - press `C-j` and notice nothing changes - insert a space - press `C-j` and notice it got reflowed nicely taking indentation into account.
To me the culprit is the following piece since it doesn't take tab width into account
https://github.com/geany/geany/blob/41624c411702d29834da0ff926f3c9f7c895bb47...
If somebody made a PR using sci_get_col_from_position() instead of just using the byte positions its likely to get accepted.
github-comments@lists.geany.org