chars: don't try to see a character in an empty line
This fixes https://savannah.gnu.org/bugs/?48578.master
parent
103dd06347
commit
bf091be778
|
@ -190,6 +190,9 @@ bool is_word_mbchar(const char *c, bool allow_punct)
|
||||||
{
|
{
|
||||||
assert(c != NULL);
|
assert(c != NULL);
|
||||||
|
|
||||||
|
if (*c == '\0')
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
if (is_alnum_mbchar(c))
|
if (is_alnum_mbchar(c))
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue