Bug 453964

Summary: Can't prevent system clipboard from being written, even if using blackhole register, when deleting text in Kate Vi mode
Product: [Applications] kate Reporter: red_Arti <jijiliu35>
Component: Vi Input ModeAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 22.04.1   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description red_Arti 2022-05-18 02:13:25 UTC
STEPS TO REPRODUCE
1. Use `x`, `d`, `dd`, `c`, `s` , `delete` keys to delete texts
2. You can try adding `"_`, `"*` before above command

OBSERVED RESULT
Deleted texts always go into system clipboard

EXPECTED RESULT
Don't write to system clipboard when not supposed to

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: kded-5.76.0
(available in About System)
KDE Plasma Version: 5.18.6
KDE Frameworks Version: 5.76.0
Qt Version: 5.12.7

ADDITIONAL INFORMATION
More details at https://www.reddit.com/r/kde/comments/upyuci
Comment 1 red_Arti 2022-05-18 02:14:53 UTC
STEPS TO REPRODUCE
1. Use `x`, `d`, `dd`, `c`, `s` , `delete` keys to delete texts
2. You can try adding `"_`, `"*` before above command

OBSERVED RESULT
Deleted texts always go into system clipboard

EXPECTED RESULT
Don't write to system clipboard when not supposed to

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: kded-5.76.0
(available in About System)
KDE Plasma Version: 5.18.6
KDE Frameworks Version: 5.76.0
Qt Version: 5.12.7

ADDITIONAL INFORMATION
More details at https://www.reddit.com/r/kde/comments/upyuci
Comment 2 Bug Janitor Service 2022-08-05 17:21:59 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/ktexteditor/-/merge_requests/396
Comment 3 Christoph Cullmann 2022-08-07 15:12:28 UTC
Git commit 25b4cdff7577c137086351fe44e83b8ee99721b6 by Christoph Cullmann, on behalf of Helga Albert-Huszár.
Committed on 07/08/2022 at 15:03.
Pushed by cullmann into branch 'master'.

Fix vi mode delete behavior

Deleting text using the black hole register resulted in the text being
copied to the numbered registers and the clipboard.

M  +4    -4    src/vimode/modes/modebase.cpp

https://invent.kde.org/frameworks/ktexteditor/commit/25b4cdff7577c137086351fe44e83b8ee99721b6