SUMMARY *** NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols. See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports *** STEPS TO REPRODUCE 1. Open a new document 2. Write out 9 lines 3. Move to the 10th line OBSERVED RESULT The sidebar moves to accommodate the extra digit in the 10's place EXPECTED RESULT The sidebar shouldn't move Operating System: openSUSE Tumbleweed 20230225 KDE Plasma Version: 5.27.1 KDE Frameworks Version: 5.103.0 Qt Version: 5.15.8 Kernel Version: 6.1.12-1-default (64-bit) Graphics Platform: Wayland
Created attachment 156768 [details] lines 1-9
Created attachment 156769 [details] line 10 moves
I don't see what is should do otherwise. Cut the numbers?
(In reply to Christoph Cullmann from comment #3) > I don't see what is should do otherwise. Cut the numbers? Could right justify the numbers and add enough padding by default for 3-4 digits? There's close to enough room for that many now
> There's close to enough room for that many now There isn't. The room you see is a separate column used by folding markers. I think this is working as intended.
Created attachment 156770 [details] padding sizes
(In reply to Waqar Ahmed from comment #5) > > There's close to enough room for that many now > > There isn't. The room you see is a separate column used by folding markers. > > I think this is working as intended. I just uploaded a new attachment to clarify what I meant. There's a bit of space represented by the blue line, obviously this is intentional to keep the line numbers visually separated from the document, but that column doesn't need much more space, represented by red, to accommodate more digits without jumping. Obviously, having a document with 10000s of lines will have enough digits to cause it to jump, but for 90% of cases, I think adding a few more digits of padding would be sufficient.
That is no padding, that is the place for e.g. folding markers.
> I think adding a few more digits of padding would be sufficient. That won't happen. We will not occupy anymore space than needed. The extra space marked by blue is for the folding column, line numbers can't and won't use that space. Sorry, there's nothing we can do here. I will close this now.