Bug 418384 - Middle click pasting text results in line count error
Summary: Middle click pasting text results in line count error
Status: RESOLVED WORKSFORME
Alias: None
Product: kate
Classification: Applications
Component: general (other bugs)
Version First Reported In: 19.04.3
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-02 01:38 UTC by scottmacdonald898
Modified: 2020-11-29 04:33 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
lines 3-7(count manually, do not use the line counts in the UI) were pasted in (25.31 KB, image/png)
2020-03-02 01:38 UTC, scottmacdonald898
Details

Note You need to log in before you can comment on or make changes to this bug.
Description scottmacdonald898 2020-03-02 01:38:26 UTC
Created attachment 126540 [details]
lines 3-7(count manually, do not use the line counts in the UI) were pasted in

SUMMARY
Middle click pasting text results in line count error

STEPS TO REPRODUCE
1. Write one line of text and enter into a new blank line. 
2. Highlight a multi line text sample including blank lines in a different app
3. Use the middle click function to paste the text into the second blank line after the text from step one. 

OBSERVED RESULT
Line count text on the left is duplicated / misprinted/ incorrect. 

EXPECTED RESULT
Text is pasted and line count is correct

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Kubuntu 19.10
(available in About System)
KDE Plasma Version: 5.16.5
KDE Frameworks Version: 5.62.0
Qt Version: 5.12.4

ADDITIONAL INFORMATION
Comment 1 Patrick Silva 2020-03-13 19:37:41 UTC
Reproducible with Kate 19.12.3 on Arch Linux.
Comment 2 Christoph Cullmann 2020-03-14 16:29:34 UTC
Hi, I might be confused, but what is exactly wrong?

In your screenshot I just see the few lines and that dynamic word wrap leads to some wrappings that are not counted.

How should it look correctly?

Sorry if I misunderstand the issue.
Comment 3 Justin Zobel 2020-10-30 02:31:55 UTC
Scott I've just tried to reproduce this on git master and the line count matches up correctly when using middle click to paste.

Can you please re-test and confirm this is no longer an issue, thanks.
Comment 4 Bug Janitor Service 2020-11-14 04:33:56 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2020-11-29 04:33:53 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!