]> git.lyx.org Git - features.git/blobdiff - src/lyxfind.C
selection patch
[features.git] / src / lyxfind.C
index 70e9b64e8a607dfe67b5a0de3da22618ea170185..c308e9d00baa28e16f4a231e726b868115a5ccba 100644 (file)
@@ -225,7 +225,7 @@ int replace(BufferView * bv,
 
        text->replaceSelectionWithString(replacestr);
        text->setSelectionRange(replacestr.length());
-       text->cursor = fw ? text->selection.end : text->selection.start;
+       text->cursor = fw ? text->selEnd() : text->selStart();
 
        bv->buffer()->markDirty();
        find(bv, searchstr, cs, mw, fw);