Created attachment 169803 [details] screenshot of bug SUMMARY The scrollbar preview does not render with fixed char length, this breaks ascii art. STEPS TO REPRODUCE 1. Open a ascii art document (scene release .nfo is a good one) 2. Use the scroll preview on the side to navigate 3. Notice the art looked broken since fixed spaces for white spaces is not respected. OBSERVED RESULT Bad ascii art image EXPECTED RESULT Nice ascii art image SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 6.0.4 KDE Frameworks Version: 6.2.0 Qt Version: 6.7.0 Kernel Version: 6.8.9-arch1-2 (64-bit) Graphics Platform: X11
Created attachment 169804 [details] Ascii art file
Ok, I see, the pixel painted stuff in the scrollbar minimap are off.
KateScrollBar::updatePixmap() has issues with tabs. We not just ignore the configured tab width but the whole loop will not handle tabs well. We skip over chars and we don't align the tabstops.