mirror of
git://git.sv.gnu.org/nano.git
synced 2025-01-08 02:32:00 +03:00
tweaks: adjust indentation after previous change, and rename a parameter
This commit is contained in:
parent
003ddc763e
commit
e02c8aeb20
14
src/chars.c
14
src/chars.c
@ -638,16 +638,16 @@ char *mbrevstrpbrk(const char *head, const char *accept, const char *pointer)
|
|||||||
#if defined(ENABLE_NANORC) && (!defined(NANO_TINY) || defined(ENABLE_JUSTIFY))
|
#if defined(ENABLE_NANORC) && (!defined(NANO_TINY) || defined(ENABLE_JUSTIFY))
|
||||||
/* Return TRUE if the given string contains at least one blank character,
|
/* Return TRUE if the given string contains at least one blank character,
|
||||||
* and FALSE otherwise. */
|
* and FALSE otherwise. */
|
||||||
bool has_blank_char(const char *s)
|
bool has_blank_char(const char *string)
|
||||||
{
|
{
|
||||||
char symbol[MAXCHARLEN];
|
char symbol[MAXCHARLEN];
|
||||||
|
|
||||||
while (*s != '\0') {
|
while (*string != '\0') {
|
||||||
s += parse_mbchar(s, symbol, NULL);
|
string += parse_mbchar(string, symbol, NULL);
|
||||||
|
|
||||||
if (is_blank_mbchar(symbol))
|
if (is_blank_mbchar(symbol))
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user