Switch to side-by-side view
--- a/src/rcldb/termproc.h +++ b/src/rcldb/termproc.h @@ -131,7 +131,14 @@ } return true; } - return TermProc::takeword(otrm, pos, bs, be); + // It may happen in some weird cases that the output from unac is + // empty (if the word actually consisted entirely of diacritics ...) + // The consequence is that a phrase search won't work without addional + // slack. + if (otrm.empty()) + return true; + else + return TermProc::takeword(otrm, pos, bs, be); } virtual bool flush()