]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfind.C
clone NVI, other small stuff
[lyx.git] / src / lyxfind.C
index 7592ca73445f4965fec7393ba2001c52638e4472..a8100fdd833228507132da5bca9d35f67679cb07 100644 (file)
@@ -85,10 +85,10 @@ public:
 
                // if necessary, check whether string matches word
                if (mw) {
-                       if (pos > 0 && par.isWord(pos - 1))
+                       if (pos > 0 && par.isLetter(pos - 1))
                                return false;
                        if (pos + lyx::pos_type(size) < parsize
-                           && par.isWord(pos + size));
+                           && par.isLetter(pos + size));
                                return false;
                }
 
@@ -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;
 }