Bug 474693 - incorrect and duplicate line numbers (e.g. after unindent command following sloppy scroll)
Summary: incorrect and duplicate line numbers (e.g. after unindent command following s...
Status: REPORTED
Alias: None
Product: kate
Classification: Applications
Component: part (show other bugs)
Version: 22.08.2
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-19 13:35 UTC by kdebugs
Modified: 2024-03-16 00:36 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
screenshot showing incorrect and duplicate line numbers as described (79.45 KB, image/png)
2023-09-19 13:35 UTC, kdebugs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kdebugs 2023-09-19 13:35:58 UTC
Created attachment 161722 [details]
screenshot showing incorrect and duplicate line numbers as described

SUMMARY
Line numbers are erroneously incremented when using the "Unindent" command (Ctrl+Shift+i) (perhaps other commands also), provided the window is already in the erroneous scroll state described in bug 474690.

STEPS TO REPRODUCE
1. Follow the directions to reproduce bug 474690 (first example).
2. Immediately (i.e. without moving cursor to different line, etc.  Time is not a factor.) press Ctrl+Shift+I (unindent).

OBSERVED RESULT
1. Text is shifted down to eat up the extra space (about one and a half lines worth, as reported in bug 474690).
2. Last line number stays correct (104), but all line numbers above it are incremented.  Thus, you will see two lines that say 104.

EXPECTED RESULT
Line numbers should not be wrong.

When you move to a different line or go do something else, the line numbers fix themselves.

Reproducible:
Always

Observed on:
Kubuntu 22.10
Qt version 5.15.6
KDE Frameworks version 5.98.0
Comment 1 Christoph Cullmann 2024-03-15 19:08:34 UTC
Looks not ok, but I can not reproduce that with recent versions, please try 24.02.
Comment 2 kdebugs 2024-03-16 00:36:40 UTC
This bug and bug 474690 are still reproducible on more recent (and older) versions.

- reproducible on 21.x on Kubuntu 22.04
- still reproducible on version originally reported (22.08.2 on Kubuntu 22.10)
- reproducible on 23.08.1 on Kubuntu 23.10 (KDE Frameworks 5.110.0, Qt 5.15.10)
- reproducible on 24.02.0 on KaOS 2024.03 (KDE Frameworks 6.0.0, Qt 6.6.2)