]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfind.C
Translate labels for float:algorithm, float:figure and float:table.
[lyx.git] / src / lyxfind.C
index fa6acb468fb2962dacf05f498e971a09e53ed288..7e42daca2d64a9abc3f228930cd0437858d1de32 100644 (file)
@@ -176,9 +176,12 @@ bool LyXFind(BufferView * bv,
                bv->getLyXText()->setSelectionOverString(bv, searchstr);
                bv->toggleSelection(false);
                bv->update(bv->getLyXText(), BufferView::SELECT|BufferView::FITCUR);
-       } else if (result == SR_NOT_FOUND)
+       } else if (result == SR_NOT_FOUND) {
+               bv->toggleSelection();
+               bv->getLyXText()->clearSelection();
+               bv->update(bv->getLyXText(), BufferView::SELECT|BufferView::FITCUR);
                found = false;
-
+       }
        if (bv->focus())
                bv->showCursor();