summary refs log tree commit diff
path: root/group.c
diff options
context:
space:
mode:
Diffstat (limited to 'group.c')
-rw-r--r--group.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/group.c b/group.c
index 5482d70..3cb5e79 100644
--- a/group.c
+++ b/group.c
@@ -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))