summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2022-10-07 21:30:15 +0000
committerGitHub <noreply@github.com>2022-10-07 21:30:15 +0000
commitc83b9f0b96960a7c379b315e9e314209e80c5e6c (patch)
tree79bf7bf3b53d5543e84f00449e90365e683f6011
parentc9717918eeb71c9599aadb8f96316a87030d0218 (diff)
parent8e154f66b15b520ae63b08189e6f1aa0995d4bd3 (diff)
Merge pull request #217 from kronikpillow/merge
fix shifttag bug fix
-rw-r--r--shiftview.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/shiftview.c b/shiftview.c
index 3d2706b..bb43969 100644
--- a/shiftview.c
+++ b/shiftview.c
@@ -46,7 +46,7 @@ shifttag(const Arg *arg)
nextseltags = (curseltags << i) | (curseltags >> (LENGTH(tags) - i));
else // right circular shift
- nextseltags = curseltags >> (- i) | (curseltags << (LENGTH(tags) + i));
+ nextseltags = (curseltags >> - i) | (curseltags << (LENGTH(tags) + i));
// Check if tag is visible
for (c = selmon->clients; c && !visible; c = c->next)
@@ -62,3 +62,4 @@ shifttag(const Arg *arg)
tag(&a);
}
}
+