Skip to content
Browse files

Fix status parsing, allow ^ instead of \ for sequence first char

  • Loading branch information...
1 parent 5a9d1f6 commit 6f383d74b8461da66f1d3b59c0daad8af6e23efd @xorg62 xorg62 committed
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/status.c
View
7 src/status.c
@@ -64,7 +64,7 @@ status_parse_mouse(struct status_seq *sq, char *str)
int i;
if(*str != '(' || !(end = strchr(str, ')')))
- return str + 1;
+ return str;
i = parse_args(++str, ';', ')', 3, arg);
@@ -98,7 +98,7 @@ status_parse(struct status_ctx *ctx)
for(; *dstr; ++dstr)
{
/* Check if this is a sequence */
- if(*dstr != '\\')
+ if(*dstr != '^' && *dstr != '\\')
continue;
p = ++dstr;
@@ -159,8 +159,9 @@ status_parse(struct status_ctx *ctx)
* Optional mousebind sequence(s) \<seq>[](button;func;cmd)
* Parse it while there is a mousebind sequence.
*/
- dstr = ++end;
+ dstr = end + 1;
while((*(dstr = status_parse_mouse(sq, dstr)) == '('));
+ --dstr;
prev = sq;
}

0 comments on commit 6f383d7

Please sign in to comment.
Something went wrong with that request. Please try again.