]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfind.C
fix crash in mathhullinset
[lyx.git] / src / lyxfind.C
index ee0f53dda032a15bf2e5a8480ccd156e8ea70a2d..a8100fdd833228507132da5bca9d35f67679cb07 100644 (file)
@@ -363,6 +363,11 @@ 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();
+       if (bv->fitCursor())
+               bv->update();
 
        return true;
 }