option_whole_chars_search: unsed variable. Remove it and related code.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
(compare_word_to_right): fix upper boundary of scanned text.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>