X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxfind.C;h=d8e08dd8036e174e418ff4ceb05871c29bb2ddcd;hb=f8f59e97fb06149528a180c5964c9abb27e079a1;hp=99181a4c09dc280cb0f36539cd8c12d2b7e69494;hpb=b2126408cfeaa251bc966e3df49a7000a202add3;p=lyx.git diff --git a/src/lyxfind.C b/src/lyxfind.C index 99181a4c09..d8e08dd803 100644 --- a/src/lyxfind.C +++ b/src/lyxfind.C @@ -29,6 +29,7 @@ #include "undo.h" #include "frontends/Alert.h" +#include "frontends/Selection.h" #include "support/convert.h" #include "support/docstream.h" @@ -356,6 +357,7 @@ bool findNextChange(BufferView * bv) // Now put cursor to end of selection: bv->cursor().setCursor(cur); bv->cursor().setSelection(); + theSelection().haveSelection(bv->cursor().selection()); // if we used a lfun like in find/replace, dispatch would do // that for us bv->update();