// if necessary, check whether string matches word
if (mw) {
- if (pos > 0 && par.isWord(pos - 1))
+ if (pos > 0 && par.isLetter(pos - 1))
return false;
if (pos + lyx::pos_type(size) < parsize
- && par.isWord(pos + size));
+ && par.isLetter(pos + size));
return false;
}
int replace(BufferView * bv, string const & searchstr,
- string const & replacestr, bool cs, bool mw, bool fw)
+ string const & replacestr, bool cs, bool mw, bool fw)
{
if (!searchAllowed(bv, searchstr) || bv->buffer()->isReadonly())
return 0;