]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.cpp
Clarify some comments.
[lyx.git] / src / BufferView.cpp
index cb06810f7aaafa248eab7cd0b858a32f0feb336e..f70661ad8c588c27aef42dcbc4d94bff77bcf6b4 100644 (file)
@@ -1503,9 +1503,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();