]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.cpp
Make the float interface for XHTML consistent with the others.
[lyx.git] / src / BufferView.cpp
index a207abd936603557052e6b8e3ed6526af19e24b6..5107eb192472758f1fb26078970f8c050a451a07 100644 (file)
@@ -1504,9 +1504,16 @@ bool BufferView::dispatch(FuncRequest const & cmd)
                break;
        }
 
-       case LFUN_WORD_FINDADV:
-               findAdv(this, cmd);
+       case LFUN_WORD_FINDADV: {
+               FindAndReplaceOptions opt;
+               istringstream iss(to_utf8(cmd.argument()));
+               iss >> opt;
+               if (findAdv(this, opt))
+                       cur.dispatched();
+               else
+                       cur.undispatched();
                break;
+       }
 
        case LFUN_MARK_OFF:
                cur.clearSelection();
@@ -1770,7 +1777,7 @@ bool BufferView::dispatch(FuncRequest const & cmd)
                processUpdateFlags(Update::Force);
 
                if (iterations >= max_iter)
-                       cur.errorMessage(bformat(_("inset-forall interrupted because number of actions is larger than %1$s"), max_iter));
+                       cur.errorMessage(bformat(_("`inset-forall' interrupted because number of actions is larger than %1$d"), max_iter));
                else
                        cur.message(bformat(_("Applied \"%1$s\" to %2$d insets"), from_utf8(commandstr), iterations));
                break;