]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfind.C
Implement os::current_root for native Win32 builds.
[lyx.git] / src / lyxfind.C
index a8100fdd833228507132da5bca9d35f67679cb07..769aa2c44c6ec65ba5c2e943be3ad5076fa60872 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;
@@ -128,7 +128,7 @@ bool findBackwards(DocIterator & cur, MatchString const & match)
 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;
@@ -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;
 }