Bug 427180 - Strange behavior on zoom
Summary: Strange behavior on zoom
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: kwrite (show other bugs)
Version: 20.08.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-30 20:41 UTC by popov895
Modified: 2022-04-09 08:59 UTC (History)
3 users (show)

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


Attachments
Video to watch (363.46 KB, video/mp4)
2020-09-30 20:41 UTC, popov895
Details
Without copy-paste (396.76 KB, video/mp4)
2020-10-08 08:07 UTC, popov895
Details

Note You need to log in before you can comment on or make changes to this bug.
Description popov895 2020-09-30 20:41:37 UTC
Created attachment 132032 [details]
Video to watch

SUMMARY

Hard to explain, just watch the video.

STEPS TO REPRODUCE

1. open any text file
2. select any word (or a small part of the text) and copy it to the clipboard
3. close this file using "File" > "Close" action or Ctrl+W shortcut
4. paste the word you copied before
5. zoom in or out

OBSERVED RESULT

The pasted word is highlighted.

EXPECTED RESULT

The pasted word isn't highlighted.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: KDE neon 5.19 User Edition on X11
KDE Plasma Version: 5.19.5
KDE Frameworks Version: 5.74.0
Qt Version: 5.15.0
Comment 1 Dominik Haumann 2020-10-08 06:22:55 UTC
It's likely a MovingRange of search highlights that is initialized to (0, 0) instead of invalid (-1, -1) or something similar. It seems that only paste triggers this?!
Comment 2 popov895 2020-10-08 08:07:06 UTC
Created attachment 132205 [details]
Without copy-paste

I assume that the information about selected text fragment isn't reset after the document is closed.
Comment 3 Justin Zobel 2020-10-27 07:50:46 UTC
I can't replicate this on kate from git master.

I paste the text, increase zoom as you did from the view menu but the word is not highlighted.

Can you please confirm this is still occurring for you?
Comment 4 popov895 2020-10-27 09:27:14 UTC
Kate 20.11.70 isn't affected by this bug, but KWrite 20.11.70 is.
Comment 5 Christoph Feck 2020-11-09 23:16:48 UTC
Thanks for the update; changing status.
Comment 6 Justin Zobel 2020-11-13 06:02:43 UTC
Confirmed on 21.03.70.
Comment 7 Christoph Cullmann 2022-04-07 20:50:35 UTC
Hmm, can't reproduce with 21.12.
Comment 8 popov895 2022-04-07 22:18:05 UTC
Still reproducible with KWrite 21.12.3.
Comment 9 popov895 2022-04-09 08:59:16 UTC
Steps to reproduce cannot be reproduced with KWrite on 22.07.70, so this issue can be closed as fixed.