mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-06 03:40:56 -08:00
* lwlib/lwlib.c (lw_separator_p): Fix empty strings being separators.
This commit is contained in:
parent
e379d2e8c1
commit
d6b5ac0f94
1 changed files with 8 additions and 4 deletions
|
|
@ -1324,11 +1324,15 @@ lw_separator_p (const char *label, enum menu_separator *type, int motif_p)
|
||||||
{
|
{
|
||||||
/* Old-style separator, maybe. It's a separator if it contains
|
/* Old-style separator, maybe. It's a separator if it contains
|
||||||
only dashes. */
|
only dashes. */
|
||||||
|
if (*label == '-')
|
||||||
|
{
|
||||||
while (*label == '-')
|
while (*label == '-')
|
||||||
++label;
|
++label;
|
||||||
separator_p = *label == 0;
|
separator_p = *label == 0;
|
||||||
|
|
||||||
*type = SEPARATOR_SHADOW_ETCHED_IN;
|
*type = SEPARATOR_SHADOW_ETCHED_IN;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return separator_p;
|
return separator_p;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue