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
Looks not ok, but I can not reproduce that with recent versions, please try 24.02.
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)