From: Christian Heller Date: Mon, 26 Aug 2013 02:36:45 +0000 (+0200) Subject: Removed unnecessary condition. X-Git-Tag: tce~1033 X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/%7B%7Bdb.prefix%7D%7D/static/foo.html?a=commitdiff_plain;h=76642a2046d8f9a4774cd561ea2899a2890b3370;p=plomrogue Removed unnecessary condition. --- diff --git a/src/windows.c b/src/windows.c index 41eaae9..50a48e3 100644 --- a/src/windows.c +++ b/src/windows.c @@ -547,8 +547,7 @@ extern void cycle_active_win(struct WinMeta * wmeta, char dir) extern uint8_t shift_active_win(struct WinMeta * wmeta, char dir) { if ( 0 == wmeta->active /* No shifting with < 2 */ - || wmeta->_chain_start == wmeta->_chain_end /* windows visible or */ - || (dir != 'f' && dir != 'b')) /* wrong direction char. */ + || wmeta->_chain_start == wmeta->_chain_end) /* windows visible. */ { return 0; } diff --git a/src/windows.h b/src/windows.h index 7e666ac..38bb729 100644 --- a/src/windows.h +++ b/src/windows.h @@ -151,7 +151,7 @@ extern void cycle_active_win(struct WinMeta * wmeta, char dir); -/* Move active window forwards ("dir" == "f") or backwards ("dir" == "b"). +/* Move active window forwards ("dir" == "f") or backwards (any other "dir"). * Wrap around in the window chain if start / end of it is met. Does nothing if * no window is active. */