#284 Search and Replace wrong on first replacement

open
None
5
2007-04-30
2006-12-04
No

Screem version: 0.17.1 +cvs up to December 3, 2006
System: Mac OS X 10.4.8
Options: enchant and dbus enabled

Steps to reproduce:
1. Open a file in screem
2. Highlight the fragment of text to be replaced
Here it will be for example: Sommaire chapitre 1
3. Use Ctrl-C to copy the fragment
4. Use Ctrl-F to open the search and replace dialog
5. Pass the fragment in Search field with Ctrl-V
6. Pass the fragment in Replace field with Ctrl-V and modify it
It will be for example: Sommaire chapitre 2
7. Check that the From start box is checked
8. Click on Replace all

Result:
The first line to be replaced gives:
Sommaire chapitre1Sommairechapitre2

Other lines are correctly replaced.

It seems that the first time the replacement string is added at the end of the search string.

Note that if the replacement is made on several files, subsequent files are correctly changes.
Note also that if the search string is thereafter changed manually inside the same search and replace dialog, together with a new replacement string, the changes are also correctly applied.

I've attached the file I used to test.

Discussion

  • File used to test search and replacement dialog

     
    Attachments
  • David A Knight
    David A Knight
    2007-04-30

    • assigned_to: nobody --> davek
     
  • David A Knight
    David A Knight
    2007-04-30

    Logged In: YES
    user_id=736
    Originator: NO

    I don't seem to be able to reproduce this.