simplification
1e826ddd
1 file(s) · +2 −4
| 218 | 218 | ||
| 219 | 219 | void |
|
| 220 | 220 | togglebar(const char *arg) { |
|
| 221 | - | if(bpos == BarOff) { |
|
| 222 | - | if((bpos = BARPOS) == BarOff) |
|
| 223 | - | bpos = BarTop; |
|
| 224 | - | } |
|
| 221 | + | if(bpos == BarOff) |
|
| 222 | + | bpos = (BARPOS == BarOff) ? BarTop : BARPOS; |
|
| 225 | 223 | else |
|
| 226 | 224 | bpos = BarOff; |
|
| 227 | 225 | updatebarpos(); |