layout.c
changeset 883 2cbf1010be11
parent 880 f330be522eca
child 887 44755dcf1ad4
--- a/layout.c	Tue May 15 13:44:04 2007 +0200
+++ b/layout.c	Tue May 15 13:49:43 2007 +0200
@@ -218,7 +218,12 @@
 
 void
 togglebar(const char *arg) {
-	bpos = (bpos == BarOff) ? BARPOS : BarOff;
+	if(bpos == BarOff) {
+		if((bpos = BARPOS) == BarOff)
+			bpos = BarTop;
+	}
+	else
+		bpos = BarOff;
 	updatebarpos();
 	lt->arrange();
 }