Make newline a style delimiter as well so they can cross multiple lines
authornicm <nicm@openbsd.org>
Thu, 12 Aug 2021 20:46:30 +0000 (20:46 +0000)
committernicm <nicm@openbsd.org>
Thu, 12 Aug 2021 20:46:30 +0000 (20:46 +0000)
for readability.

usr.bin/tmux/style.c

index a0a34c0..609872d 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: style.c,v 1.29 2021/03/11 06:41:04 nicm Exp $ */
+/* $OpenBSD: style.c,v 1.30 2021/08/12 20:46:30 nicm Exp $ */
 
 /*
  * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -51,7 +51,7 @@ int
 style_parse(struct style *sy, const struct grid_cell *base, const char *in)
 {
        struct style    saved;
-       const char      delimiters[] = " ,", *cp;
+       const char      delimiters[] = " ,\n", *cp;
        char            tmp[256], *found;
        int             value;
        size_t          end;