aboutsummarylogtreecommitdiffstats
path: root/layout.c
diff options
context:
space:
mode:
authorAnselm R. Garbe2007-05-15 14:06:18 +0200
committerAnselm R. Garbe2007-05-15 14:06:18 +0200
commitf2d9d31ee2f0755a0ee79f943bf20a36997bc4a0 (patch)
tree3562a7bd8b38d3cb0400a2edfd217b98c6be3f50 /layout.c
parent60dfc1d7942206d552d764aa68e07720e806c2ef (diff)
downloadaur-f2d9d31ee2f0755a0ee79f943bf20a36997bc4a0.tar.gz
simplification
Diffstat (limited to 'layout.c')
-rw-r--r--layout.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/layout.c b/layout.c
index 5bb6e9734859..bc5ca1c0df3a 100644
--- a/layout.c
+++ b/layout.c
@@ -218,10 +218,8 @@ setlayout(const char *arg) {
void
togglebar(const char *arg) {
- if(bpos == BarOff) {
- if((bpos = BARPOS) == BarOff)
- bpos = BarTop;
- }
+ if(bpos == BarOff)
+ bpos = (BARPOS == BarOff) ? BarTop : BARPOS;
else
bpos = BarOff;
updatebarpos();