[Github-comments] [geany/geany] Reflow bug with indent type "tabs" and tab width over 1 (#2810)

slowpeek notifications at xxxxx
Sun May 16 15:26:29 UTC 2021


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/src/keybindings.c#L2297-L2302


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2810
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20210516/ddcf896e/attachment.htm>


More information about the Github-comments mailing list