From 6b8c7ba0748472320a1f2803b67eabfd7d5fe794 Mon Sep 17 00:00:00 2001 From: John Vogel Date: Wed, 26 Feb 2014 18:50:58 -0500 Subject: [PATCH] Revert "Expect numbered monitors to start at 1." This reverts commit 9471332595e69ace2a035247c8d846566a40ff9a. --- bar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bar.c b/bar.c index d062756..cbf2506 100644 --- a/bar.c +++ b/bar.c @@ -278,7 +278,7 @@ parse (char *text) { cur_mon = montail ? montail : monhead; } else if (isdigit(*p)) { cur_mon = monhead; - for (int i = 1; i != *p-'0' && cur_mon->next; i++) + for (int i = 0; i != *p-'0' && cur_mon->next; i++) cur_mon = cur_mon->next; } else