[Bug 49619] Re: "search & replace all" doesn't, if there's a selection

Henrik Nilsen Omma lp at omma.net
Thu Aug 31 14:41:03 UTC 2006


I can confirm this on Edgy with abiword 2.4.5. Exact procedure to
reproduce:

* Open Abiword
* Type 'foo foo foo'
* Go to search/replace
* Type 'foo' in the search box and 'bar' in the replace box
* Hit FIND (it finds the first foo)
* Then hit REPLACE ALL

Expected result: 'bar bar bar'

Actual result: 'foo bar bar'

This happens each time. If you press REPLACE ALL at the very beginning
though you get 'bar bar bar', whether anything is selected or not.

I would call this a bug because the user might search for a word first
and when the result appears discover that there are several instances.
When she subsequently hits Replace All she would expect all the words in
the document to be replaced.

(I'll file this upstream)

** Changed in: abiword (Ubuntu)
       Status: Needs Info => Confirmed

** Summary changed:

- "search & replace all" doesn't, if there's a selection
+ 'Find' followed by 'Replace All' fails to replace the first instance

** Description changed:

+ Update: See comment by Henrik for more procedure to reproduce
+ 
  Type "foo foo foo", go edit -> replace, search "foo" replace "bar", hit
  "replace all", result "bar bar bar".
  
  Type "foo foo foo", hilight the text, go edit -> replace, search "foo"
  replace "bar", hit "replace all", result "bar foo foo".

-- 
'Find' followed by 'Replace All' fails to replace the first instance
https://launchpad.net/bugs/49619




More information about the desktop-bugs mailing list