From b680326c370c5f0e8d695b427e27bf2bfd4042f0 Mon Sep 17 00:00:00 2001
From: David Lawrence Ramsey <pooka109@gmail.com>
Date: Sat, 12 Feb 2005 23:59:20 +0000
Subject: [PATCH] cosmetic fix

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2319 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
---
 src/search.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/search.c b/src/search.c
index 4e647481..c8608fe3 100644
--- a/src/search.c
+++ b/src/search.c
@@ -280,7 +280,7 @@ bool is_whole_word(size_t pos, const char *buf, const char *word)
      * word isn't an alphanumeric character, and if we're at the end of
      * the line or the character after the word isn't an alphanumeric
      * character, we have a whole word. */
-    retval = (pos < 1 || !is_alnum_mbchar(p)) &&
+    retval = (pos == 0 || !is_alnum_mbchar(p)) &&
 	(word_end == strlen(buf) || !is_alnum_mbchar(r));
 
     free(p);
-- 
GitLab