Opening the Find dialog sometimes clears the primary buffer

Bug #1099436 reported by Victor Engmark
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-terminal (Ubuntu)
New
Undecided
Unassigned

Bug Description

How to reproduce:
1. Focus a GNOME Terminal window
2. Open the Find dialog
3. Search for a string
4. Close the Find dialog
5. Select some text in the terminal
6. Open the Find dialog again

At this point, there are two possible behaviors:
* If the Find dialog contained some text when it was closed, the selection in the terminal window will be cleared, the text in the Find dialog will be selected, and the primary buffer will be emptied.
* If the Find dialog was empty when it was closed, the selection and primary buffer will be left as they were.

Maybe there's a good reason for this behavior, but I would expect the selection and primary buffer to always be left as they were, because of two use cases:
* Select some text that you want to search, bring up the search interface, click Backspace or Delete to clear the Find dialog, and middle-click to fill in the selected text.
* Select some text, bring up the search interface, then start searching from the start/end of the selection (whichever gives the biggest search space when the direction is taken into account).

Alternatively, the selection could replace the text in the search interface when bringing it up.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: gnome-terminal 3.4.1.1-0ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-35.55-generic 3.2.34
Uname: Linux 3.2.0-35-generic i686
ApportVersion: 2.0.1-0ubuntu17.1
Architecture: i386
Date: Mon Jan 14 15:29:58 2013
ExecutablePath: /usr/bin/gnome-terminal
InstallationMedia: Ubuntu 10.04.4 LTS "Lucid Lynx" - Release i386 (20120214.2)
MarkForUpload: True
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: gnome-terminal
UpgradeStatus: Upgraded to precise on 2012-07-19 (179 days ago)

Revision history for this message
Victor Engmark (victor-engmark) wrote :
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.