nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit b680326c370c5f0e8d695b427e27bf2bfd4042f0
parent e1c16b3744fb7fee61d8df0f879397ce503ef828
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Sat, 12 Feb 2005 23:59:20 +0000

cosmetic fix


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2319 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
Msrc/search.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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);