JNRH I did some more research on this (I am Bean's developer). For me, under both Tiger and Leopard, when I open a file in Text Edit, select all text, open the Find panel, type 'a' under Find and 'b' under Replace, then press the Replace or the Replace & Find button, all the selected text is replaced with 'b.' So the whole selection is replaced with 'b.' Do you find this to be true? Let me know if we are talking about two different issues. Apple's Pages behaves similarly. So does OpenOffice Aqua. MS Word X reduces the selection size down to the first occurrence of the Find string, but doesn't replace it.
I will consider changing the behavior of the Find panel in Bean, because I agree with you that the Replace action should apply only to the text selection. But I am afraid of altering the standard way of doing things. Apparently the text selection typically takes precedence over the Find string when Replace is used, based on the behavior of the apps I described above, although that may simply be fore historical reasons.
(Version 2.0.4b)