<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV><DIV>On Feb 16, 2006, at 12:32 PM, Benjamin Linton wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">Strange Find and Replace Bug - r906</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><BR></P></BLOCKQUOTE><BR><BLOCKQUOTE type="cite"><P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">Summary:</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">Doing a selection based find and replace consistently inserts many lines of code when it should be only replace one word with another single word.</FONT></P> <BR class="Apple-interchange-newline"></BLOCKQUOTE></DIV><DIV>In my system, this happens only if you press the "replace" button, instead of the "In selection" button. Pressing the "In selection" button does what it should do.</DIV><DIV>Pressing the "replace" button, or the "replace & find" button produce this effect, regardless of what the search string is. They just replace the selected text with whatever the find window tells them to replace it by.</DIV><DIV><BR class="khtml-block-placeholder"></DIV>So this is a problem with the behavior of "replace" when there is already a selection in place. Not sure I would call it a bug actually. Ok, maybe I would. But it is not a bug with "Replace in selection". There is no "replace once in selection" option. There is only "replace all in selection", and that works fine, at least over here.<DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>Haris</DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR class="Apple-interchange-newline"></SPAN> </DIV><BR></DIV></BODY></HTML>