Here the status bar moves when the column goes from 99 to 100, not 9 to 10, and it doesn't jump backward and forward like your video.

As the manual say, the default template has a tab after the lines and cols. That moves the next item to a position that will not move ... until the number of digits needed to show the line/column exceeds the tab width, then everything moves one tab further, but then nothing should move for many more digits.

Tab positions are set by GTK, not Geany, so we have no control over it, its eight spaces wide1. That is what happens here, when the cols: 99 which is 7 characters wide goes to cols: 100 which is eight characters wide the rest of the statusbar moves along one tab.

But ... (there is always a but isn't there) the width of 8 spaces depends on the font, and for some variable width fonts it can be less than the actual width of some characters. It looks like you have been (un)lucky enough for the width to be very close to the end of cols: nn and, depending on the width of the digit characters the tab position was exceeded or not, probably only by one pixel, and when it was exceeded the rest of the line jumped to the next tab position, then back as later digits were narrower and so didn't pass the tab position.

In your case you could try a different font where the spaces are better defined (its the standard system UI font IIUC, so Ubuntu should have a way of setting it, here its sans regular, but thats an alias I think, not sure what to), or it may be better to remove the tab and just use spaces, the line will still move, but only when the number of digits changes, it should not jump backward and forward like your video.

Footnotes

  1. GTK 4.8 finally added the capability to set it, but ATM there are no plans for porting Geany to GTK4.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <geany/geany/issues/3409/1436136000@github.com>