]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfind.C
more cursor dispatch
[lyx.git] / src / lyxfind.C
index d292505e4a6493b023e4891038c475f13ddee4d1..b7869ba32725a8a26681cd2bc73816d7d131064d 100644 (file)
@@ -123,7 +123,7 @@ void find(BufferView * bv, FuncRequest const & ev)
        bool forward       = parse_bool(howto);
 
        bool const found = ::find(bv, search,
-                                 forward, casesensitive, matchword);
+                                 casesensitive, matchword, forward);
 
        if (!found)
                bv->owner()->message(_("String not found!"));
@@ -330,7 +330,7 @@ int replaceAll(BufferView * bv,
        if (!searchAllowed(bv, searchstr) || buf.isReadonly())
                return 0;
 
-       recordUndo(Undo::ATOMIC, bv->text(), 0, buf.paragraphs().size() - 1);
+       recordUndoFullDocument(bv->cursor());
 
        PosIterator cur = buf.pos_iterator_begin();
        PosIterator const end = buf.pos_iterator_end();