Bug 249772 - selections will be deleted when switching back to the window
Summary: selections will be deleted when switching back to the window
Status: RESOLVED DUPLICATE of bug 248558
Alias: None
Product: kate
Classification: Applications
Component: part (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-01 19:06 UTC by Tao Bao
Modified: 2011-03-06 10:02 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tao Bao 2010-09-01 19:06:49 UTC
Version:           unspecified (using KDE 4.5.0) 
OS:                Linux

In Kate or related programs using embedded kate part like kile, there is problem with the selection. It appears all right by selecting some words or lines, no matter line or block selection. Switch to any other opened document and then switch back. The last selected contents will be deleted automatically, and the unsaved icon will appear in the title button.

A similar issue occurs while searching. The matched words will be highlighted when inputing the keywords to be searched. When clicking <esc> button to close the search bar in the bottom, the matched/selected contents will be removed as well.

It's very annoying since the selection is really a must for any editor. I observe the issue since kde-4.4.0 around (not sure, but it must be kde-4.4.x). But it it still there in every upgrade till now in kde-4.5.1.

Reproducible: Always

Steps to Reproduce:
1. select any words or lines in a document
2. click to switch to another opened document or another application
3. switch back to the document

Actual Results:  
the selections are deleted automatically, the unsaved icon will appear.

Expected Results:  
The selections should be always there unless I really click the delete button.

I would like to provide any extra information if necessary.
Comment 1 random.bits 2011-03-04 20:35:49 UTC
Though I see that this problem was entered 2010-09-01 19:06:49 and it has not been confirmed, I am running Kate 3.5.1 on KDE 4.5.1 (Kubuntu 10.10) and this problem is occurring for me. 
If I highlight a section of code (while searching or just when copying) and switch to another window then switch back, the highlighted section is deleted. It can be replaced by exiting undo.

Is there a Kate configuration or plugin that is causing this problem? It is very disruptive when working on large projects.
Comment 2 Tao Bao 2011-03-04 21:51:33 UTC
I didn't solve the problem fundamentally, but I got someway to avoid it. It seems that the problem is related to my ibus. After disabling the ibus-daemon, everything works like a charm again. So I have switched to fcitx instead, by paying the price of getting familiar with another input method...

So it is possible that the issue is related to ibus rather than kde.
Comment 3 random.bits 2011-03-04 22:10:04 UTC
Thank you for the suggestion. I turned off the Ibus daemon and the problem went away. I don't see the problem with other applications, so something about Kate and Ibus is clashing. 
Turning off the Ibus daemon is a minor inconvenience, and much preferred to having to hunt down mysterious errors due to missing code.
Comment 4 Dominik Haumann 2011-03-06 10:02:07 UTC

*** This bug has been marked as a duplicate of bug 248558 ***