Bug 400674

Summary: Long lines truncated after applying change
Product: [Applications] kompare Reporter: Wolfgang Wallner <wolfgang-wallner>
Component: viewpartAssignee: Kompare developers <kompare-devel>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version: 4.1.22081   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screenshot showin the truncated text

Description Wolfgang Wallner 2018-11-04 17:37:13 UTC
SUMMARY
If a change is applied, and the new line is longer than the longest line in the file before, then that line is truncated.


STEPS TO REPRODUCE
1. Create two files with the following contents:

File1.txt:
Line_1
Line_2
Line_3

File2.txt:
Line_1
Longer_Line_2
Line_3

2. Open File1.txt and File2.txt in Kompare

3. The difference in line 2 is highlighted, click "Apply Difference"

OBSERVED RESULT
The file view on the right side shows "Long_L", where the last "L" is only showing partially.

EXPECTED RESULT
The file view on the right side should correctly show the new text "Longer_Line_2".

SOFTWARE VERSIONS
(available in About System)
KDE Plasma Version: 5.13.5
KDE Frameworks Version: 5.50.0
Qt Version: 5.11.1

ADDITIONAL INFORMATION
The used operating system is Kubuntu 18.10.
Comment 1 Wolfgang Wallner 2018-11-04 17:41:03 UTC
Created attachment 116087 [details]
Screenshot showin the truncated text
Comment 2 Justin Zobel 2022-12-02 01:22:49 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 3 Wolfgang Wallner 2022-12-09 17:15:11 UTC
The bug is still present.
While testing, I realized that the initial description to reproduce the bug is slightly wrong.
The file contents should be as follows (the file on the left side should contain the longer line):

File1.txt:
Line_1
Longer_Line_2
Line_3

File2.txt:
Line_1
Line_2
Line_3