Paste bufer malfunction (double insert)

Bug #514189 reported by maweki
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gedit
Expired
Low
gedit (Ubuntu)
Triaged
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: gedit

Description: Ubuntu 9.10
Release: 9.10
gedit Version 2.28.0-0ubuntu2

Hello,

I have a problem which is a little bit hard to replicate but bear with me as I do not know which factors really are important.

1. Open a more than 2k plaintext-file (I happen to have this bug with php/html-files but I guess it does not matter).
2. Open a write-protected .doc-file in OpenOffice (it must - think - have some styles other than default).
3. Copy a number of words (multiple lines possible) which include utf-8-characters (for example a letter with acute or an umlaut) to the clipboard.
4. select about 20 characters in your gedit file which are not at the beginning or the end of a line (some words in the middle)
5. use ctrl+v to paste

It now should have replaced the selected text. Sometimes it doesn't. If it did, press ctrl+z for "undo" and press ctrl+v again. Do net press other keys like to cursor-keys and do not reselect the text. Repeat until a ctrl+v operation does not do the standard paste.

Now you can move the cursor around and even write some letters. Press ctrl+v again and it will paste your clipboard-text two times.

The rate of pasting and undoing has nothing to do with the bug as it can also happen on the first paste. This is just to replicate.

Also I noted:
When the paste does not happen, you can select new text and press ctrl+c and it will directly paste the newly copied text after the original one without pressing ctrl+v.

I think it is important that you copy from a rich-text field but I am really not sure.
I think it does not matter, but I am using a dual monitor configuration (only one x-session).

I hope you can replicate this bug as it is really annoying (especially when you paste much stuff from OOo to html-files).

Edit:
Strange enough, after the double-paste you can undo both pastes separately.

maweki (maweki)
description: updated
Changed in gedit (Ubuntu):
assignee: nobody → Ubuntu Desktop Bugs (desktop-bugs)
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Mario Wenzel (mario-wenzel) wrote :

Now I got it from pasting a 16 (the string "16") from OOo 3.1.1 (OOO310m19 - Build:9420).

I can not believe that nobody has been able to confirm this. Is there any additional information I could gather.

By the way: today I was able to replicate this in the lucid beta (with the default gedit and OOo-Packages) on Virtualbox with one screen. So it is definitely not a problem with the x-server or how multiple monitors are handled.

Would it help to upload one of my source-documents?

Changed in gedit:
importance: Unknown → Low
status: Unknown → New
Revision history for this message
Bartosz Porosinski (porosin) wrote :

I confirm this bug is present is gedit 2.30.3
Paste function sometimes does not seem to paste text, but if you change tab and go back to the tab you were pasting in, the pasted text will show at the current position of a cursor.
I do not have multiple monitors, and paste short lines of text from OpenOffice Calc.

Revision history for this message
Bartosz Porosinski (porosin) wrote :

After changing the text editor it turned out, that the bug affects other text editor (leafpad) as well. It seems that the bug is not related with gedit. Maybe GTK?

Changed in gedit:
status: New → Incomplete
Changed in gedit:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.