cosmetic fix
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2319 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
e1c16b3744
commit
b680326c37
|
@ -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
|
* 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
|
* the line or the character after the word isn't an alphanumeric
|
||||||
* character, we have a whole word. */
|
* 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));
|
(word_end == strlen(buf) || !is_alnum_mbchar(r));
|
||||||
|
|
||||||
free(p);
|
free(p);
|
||||||
|
|
Loading…
Reference in New Issue