#include "undo.h"
#include "frontends/Alert.h"
-#include "frontends/Selection.h"
#include "support/convert.h"
#include "support/docstream.h"
namespace lyx {
-using support::lowercase;
+using support::compare_no_case;
using support::uppercase;
using support::split;
// string search and select next occurance and return
docstring const & str1 = searchstr;
docstring const str2 = bv->cursor().selectionAsString(false);
- if ((cs && str1 != str2) || lowercase(str1) != lowercase(str2)) {
+ if ((cs && str1 != str2) || compare_no_case(str1, str2) != 0) {
find(bv, searchstr, cs, mw, fw);
return false;
}
// Now put cursor to end of selection:
bv->cursor().setCursor(cur);
bv->cursor().setSelection();
- theSelection().haveSelection(bv->cursor().selection());
return true;
}