#include "lyxtext.h"
#include "lyxfind.h"
-#include "LyXView.h"
+#include "frontends/LyXView.h"
#include "frontends/Alert.h"
#include "support/textutils.h"
#include "support/lstrings.h"
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();