| Summary: | The line number sidebar moves when adding/removing lines who's line number contains extra digits | ||
|---|---|---|---|
| Product: | [Applications] kate | Reporter: | Cars <carz181> |
| Component: | application | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED NOT A BUG | ||
| Severity: | minor | CC: | carz181, christoph, waqar.17a |
| Priority: | NOR | ||
| Version First Reported In: | 22.12.2 | ||
| Target Milestone: | --- | ||
| Platform: | openSUSE | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: |
lines 1-9
line 10 moves padding sizes |
||
|
Description
Cars
2023-02-26 22:32:31 UTC
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.
|