]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.cpp
GuiSearch did not work with num. keypad enter
[lyx.git] / src / BufferView.cpp
index 70879732c894272beedc3a8d030509b1c9f7d786..065723621b9dee268f23a40121ccc7814eb48085 100644 (file)
@@ -458,7 +458,11 @@ void BufferView::setSearchRequestCache(docstring const & text)
        bool casesensitive;
        bool matchword;
        bool forward;
-       docstring const search = string2find(text, casesensitive, matchword, forward);
+       bool wrap;
+       bool instant;
+       bool onlysel;
+       docstring const search = string2find(text, casesensitive, matchword,
+                                            forward, wrap, instant, onlysel);
        theClipboard().setFindBuffer(search);
 }
 
@@ -1644,7 +1648,8 @@ void BufferView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
                        break;
 
                docstring const data =
-                       find2string(searched_string, false, false, act == LFUN_WORD_FIND_FORWARD);
+                       find2string(searched_string, false, false,
+                                   act == LFUN_WORD_FIND_FORWARD, false, false, false);
                bool found = lyxfind(this, FuncRequest(LFUN_WORD_FIND, data));
                if (found)
                        dr.screenUpdate(Update::Force | Update::FitCursor);