Add group-last command that shows only the previously active group; ok okan

This commit is contained in:
op
2022-01-27 18:45:10 +00:00
parent 81a08ddb89
commit 7c22b36a23
6 changed files with 17 additions and 0 deletions

View File

@@ -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);