aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorokan2015-08-27 17:43:44 +0000
committerokan2015-08-27 17:43:44 +0000
commit46cb79168f52da7f4e3aa7c2c1758d4383cc866b (patch)
tree19353e79276734a4c22713d4fe496f6adb1e7850
parent87bcfe8451984d9c17a92519a97638fdcbb2550b (diff)
downloadcwm-46cb79168f52da7f4e3aa7c2c1758d4383cc866b.tar.gz
Re-add lost chunk in group_cycle from r1.113.
-rw-r--r--group.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/group.c b/group.c
index 929ad4f..ccbdab6 100644
--- a/group.c
+++ b/group.c
@@ -16,7 +16,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: group.c,v 1.118 2015/08/25 20:35:49 okan Exp $
+ * $OpenBSD: group.c,v 1.119 2015/08/27 17:43:44 okan Exp $
*/
#include <sys/types.h>
@@ -284,6 +284,9 @@ group_cycle(struct screen_ctx *sc, int flags)
group_hide(newgc);
}
+ if (showgroup == NULL)
+ return;
+
group_hide(oldgc);
if (group_holds_only_hidden(showgroup))