summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/xmonad2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/xmonad b/examples/xmonad
index 212b611..061d241 100644
--- a/examples/xmonad
+++ b/examples/xmonad
@@ -113,7 +113,7 @@ def get_workspaces():
if c in ']>':
if c == ']':
rat = len(visible)
- visible.append(int(buf.split('-')[0]))
+ visible.append(int(buf[:-1].split('-')[0]))
buf = None
elif c in '[<':
buf = ''