Searched text remains highlighted even after search window has been closed

Bug #28555 reported by Manu Cornet
10
Affects Status Importance Assigned to Milestone
gedit
Fix Released
Low
Ubuntu
Invalid
Medium
Unassigned
gedit (Ubuntu)
Fix Released
Low
Ubuntu Desktop Bugs

Bug Description

Steps to reproduce :

1. Open a text file in gedit and search some text (Ctrl-F).
2. If the searched word appears several times, then the currently selected one appears in some color (blue here) and other appear in another color (yellow here). This is a cool function.
3. Now close the search window : the words remain highlighted, and I can't find a way to un-highlight them (selecting some other text doesn't work), apart from starting a search on another word.

I believe all highlights should disappear when the search window is closed, or at least when some other text is selected.

Revision history for this message
Sebastien Bacher (seb128) wrote :

the gedit tasks are enough :), rejecting that one

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for your bug. That's known upstream: http://bugzilla.gnome.org/show_bug.cgi?id=327702

Changed in gedit:
status: Unconfirmed → Confirmed
assignee: nobody → desktop-bugs
status: Unconfirmed → Confirmed
Changed in gedit:
status: Confirmed → Fix Released
Revision history for this message
Daniel Holbach (dholbach) wrote :

 gedit (2.13.92-0ubuntu1) dapper; urgency=low
 .
   * New upstream release:
     - Snippets plugin improvements
     - External Tools plugin improvements
     - Fix the spell checking plugin (Malone: #32007)
     - Make the tags plugin load files lazily to improve startup time
     - misc UI improvements and bugfixes
     - New and updated translations: (pt_BR, et, eu, ru, el, sr, gl, gu, cy,
       hu, ja, th, ca, es, nb, no, de, lt, pt, vi, zh_CN, fi)
   * Other bugs fixed:
     - Malone: #28555 ("Searched text remains highlighted even after search
       window has been closed")
   * debian/patches/02_autoconf.patch:
     - updated.

Changed in gedit:
status: Confirmed → Fix Released
Revision history for this message
Eric Feliksik (milouny) wrote :

2.14.1-0ubuntu1 has this still/again. As I see it *was* fixed, the fix is probably floating around somewhere.

Changed in gedit:
status: Fix Released → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

I've reopen the upstream bug

Changed in gedit:
status: Fix Released → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

In fact that's the intended behaviour. That allow you to easily notice the stuff you were looking for. The Search menu has a "Clear Highlight" item for clearing the highlight. Feel free to argue upstream if you disagree with the feature

Changed in gedit:
status: Confirmed → Fix Released
Revision history for this message
decora (decora) wrote :

My problem is that after I have searched for something, several hours ago, and forgotten about doing the search.... then I am typing new text into the document, that new text will get highlighted.

I think that the spell checker or context highlighting is on or something so I go searching through menus looking for a solution. i have done this twice at least....the first place i think is of course edit/preferences. im on the verge of disabling the @#$ plugins when i finally realize that maybe there is something else going on here.

My zeroth proposed solution is to have a preference option which says 'highlight found text', and you could turn it off or on.

My first proposed solution is to have 'higlight mode->none' actually clear all of the found-text highlighting (it would just do the same thing that the search/clear highlighting' thing does. That is simpler.

My other proposed solution is to have a checkbox under 'highlight mode' which would allow you to select whether "highlight found text" would be turned off or on.

Of course, i am too lazy to program any of this myself, let alone decide weigh the merits and demerits of the ideas,... and i dont expect anyone else to do it either.

It is not that important. It is just really annoying to be typing and have some weird lights start appearing all over your text. It reminds me of microsoft word or open office and their 'helpful' hint philosophy. My beloved and trusty Microsoft Notepad (perhaps their best product, ever) would never do that to me.

but at least if i file this report, someone else out there will maybe find it and realize they just need to 'search/clear highlight'

Changed in gedit:
importance: Unknown → Low
Revision history for this message
Konstantinos Sakkas (kosagr) wrote :

I've come up with a workaround to this bug.

After having searched for whatever it is you are searching for, search for something that is unlikely to be found in there. For instance, searching for :::::::::::::::::::::::::::::::::::::: or """"""""""""""""""""""""""""""""""""""""" is highly unlikely to return any results and the highlighting goes away.

Hope this helps until a proper bugfix.

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.