! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
First word won't be replaced with the replace-function
Status:
RESOLVED: DUPLICATE
Product:
Mousepad
Component:
General

Comments

Description Friedrich Graeter 2007-03-27 14:59:08 CEST
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.8.1.2) Gecko/20070312 Firefox/2.0.0.2
Build Identifier: 

If I try to replace a word with search-and-replace, the first occurence of the searched string in the text won't be replaced. Instead of it, it will be extended by the replacement string. For example, if we have this text:

abc def abc def abc

And now I say it should replace "abc" with "xyz" I got this result:

abcxyz def abc def abc

However this bug seems only to occur if I replace word-by-word. If I replace all occurences at once it won't occur. If I replace word-by-word only the first occurence will be extended in a wrong way. After the search reached the end of the text the original part of the extended word is selected for replacing a second time.

(I'm using version 0.2.12 - but this version number is not available on bugzilla)

Reproducible: Always

Steps to Reproduce:
1. Replace some words in a text (deactivate "Replace all")
2.
3.
Comment 1 Nick Schermer editbugs 2007-05-10 13:55:10 CEST

*** This bug has been marked as a duplicate of bug 2928 ***

Bug #3066

Reported by:
Friedrich Graeter
Reported on: 2007-03-27
Last modified on: 2007-05-10

People

Assignee:
Erik Harrison
CC List:
0 users

Version

Version:
0.2.11svn

Attachments

Additional information