]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfind.C
get rid of broken_header.h and some unneeded tests
[lyx.git] / src / lyxfind.C
index a8100fdd833228507132da5bca9d35f67679cb07..479d4771167799f20a9197f5167b4bc79b6f7c2a 100644 (file)
@@ -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;
@@ -366,8 +366,6 @@ bool findNextChange(BufferView * bv)
        // if we used a lfun like in find/replace, dispatch would do
        // that for us
        bv->update();
-       if (bv->fitCursor())
-               bv->update();
 
        return true;
 }