]> git.lyx.org Git - features.git/blobdiff - src/lyxfind.C
Part of IU.
[features.git] / src / lyxfind.C
index 65d5843b6b57d968a1011946601f18467fe6b5c8..1cfdc86a48597481d8d2c6cc85db613c62136de7 100644 (file)
@@ -16,7 +16,7 @@
 #include "lyxfind.h"
 
 #include "buffer.h"
-#include "cursor_slice.h"
+#include "cursor.h"
 #include "BufferView.h"
 #include "debug.h"
 #include "iterators.h"
@@ -391,7 +391,7 @@ int replace(BufferView * bv,
 
        text->replaceSelectionWithString(replacestr);
        text->setSelectionRange(replacestr.length());
-       bv->cursor() = fw ? bv->selEnd() : bv->selStart();
+       bv->cursor().current() = fw ? bv->cursor().selEnd() : bv->cursor().selStart();
        bv->buffer()->markDirty();
        find(bv, searchstr, cs, mw, fw);
        bv->update();