using lyx::support::uppercase;
using lyx::support::split;
-using lyx::par_type;
+using lyx::pit_type;
using lyx::pos_type;
using std::advance;
bool findChange(DocIterator & cur)
{
for (; cur; cur.forwardChar())
- if (cur.inTexted() && !cur.paragraph().empty() &&
+ if (cur.inTexted() && cur.pos() != cur.paragraph().size() &&
cur.paragraph().lookupChange(cur.pos())
!= Change::UNCHANGED)
return true;
}
pos_type length = end - pos;
bv->putSelectionAt(cur, length, false);
+ // if we used a lfun like in find/replace, dispatch would do
+ // that for us
+ bv->update();
return true;
}