From 7c22b36a230ea740a0fe2b9d089f3b3340dc182b Mon Sep 17 00:00:00 2001 From: op Date: Thu, 27 Jan 2022 18:45:10 +0000 Subject: Add group-last command that shows only the previously active group; ok okan --- group.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'group.c') diff --git a/group.c b/group.c index de55211..3246936 100644 --- a/group.c +++ b/group.c @@ -215,6 +215,9 @@ group_only(struct screen_ctx *sc, int idx) { struct group_ctx *gc; + if (sc->group_last != sc->group_active) + sc->group_last = sc->group_active; + TAILQ_FOREACH(gc, &sc->groupq, entry) { if (gc->num == idx) group_show(gc); -- cgit 1.4.1