X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxfind.C;h=479d4771167799f20a9197f5167b4bc79b6f7c2a;hb=37e82a546392d43f787826b85481a11f2a27af15;hp=ee0f53dda032a15bf2e5a8480ccd156e8ea70a2d;hpb=020972b7f9bf54b333ff4d6a865d76d51f08d6b4;p=lyx.git diff --git a/src/lyxfind.C b/src/lyxfind.C index ee0f53dda0..479d477116 100644 --- a/src/lyxfind.C +++ b/src/lyxfind.C @@ -38,7 +38,7 @@ using lyx::support::lowercase; using lyx::support::uppercase; using lyx::support::split; -using lyx::par_type; +using lyx::pit_type; using lyx::pos_type; using std::advance; @@ -363,6 +363,9 @@ bool findNextChange(BufferView * bv) } 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; }