text->replaceSelectionWithString(replacestr);
text->setSelectionRange(replacestr.length());
- text->cursor() = fw ? text->selEnd() : text->selStart();
-
+ bv->cursor() = fw ? bv->selEnd() : bv->selStart();
bv->buffer()->markDirty();
find(bv, searchstr, cs, mw, fw);
bv->update();