diff options
-rw-r--r-- | window.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/window.c b/window.c index 00041aa..f700fd7 100644 --- a/window.c +++ b/window.c @@ -147,6 +147,7 @@ static int styleAdd(WINDOW *win, struct Style init, const char *str) { struct Style style = init; while (*str) { size_t len = styleParse(&style, &str); + if (!len) continue; wattr_set(win, uiAttr(style), uiPair(style), NULL); if (waddnstr(win, str, len) == ERR) return -1; |