From 46cb79168f52da7f4e3aa7c2c1758d4383cc866b Mon Sep 17 00:00:00 2001 From: okan Date: Thu, 27 Aug 2015 17:43:44 +0000 Subject: Re-add lost chunk in group_cycle from r1.113. --- group.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 @@ -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)) -- cgit v1.2.3-2-gb3c3