diff --git a/src/kwsearch.c b/src/kwsearch.c
index 442efc1..f121816 100644
--- a/src/kwsearch.c
+++ b/src/kwsearch.c
@@ -230,15 +230,14 @@ Fexecute (void *vcp, char const *buf, size_t size, size_t *match_size,
          if there is a preceding newline.  */
       if (mbclen == 0)
         {
-           char const *nl = memrchr (mb_start, eol, beg - mb_start);
-           if (nl)
-             mb_start = nl + 1;
+          char const *nl = memrchr (mb_start, eol, beg - mb_start);
+          if (nl)
+            mb_start = nl + 1;
         }

       /* Succeed if neither the preceding nor the following character is a
          word constituent.  If the preceding is not, yet the following
          character IS a word constituent, keep trying with shorter matches.  */
-      if (! wordchar_prev (mb_start, beg, buf + size))
       if (mbclen > 0
           ? ! wordchar_next (beg - mbclen, buf + size)
           : ! wordchar_prev (mb_start, beg, buf + size))
