add conf_ignore and move group_make_autogroup to conf_autogroup to match.

This commit is contained in:
okan
2013-04-17 13:30:38 +00:00
parent 16ed8bf8e4
commit a899d267fe
4 changed files with 37 additions and 29 deletions

21
group.c
View File

@@ -163,27 +163,6 @@ group_init(struct screen_ctx *sc)
group_setactive(sc, 1);
}
void
group_make_autogroup(struct conf *conf, char *val, int no)
{
struct autogroupwin *aw;
char *p;
aw = xcalloc(1, sizeof(*aw));
if ((p = strchr(val, ',')) == NULL) {
aw->name = NULL;
aw->class = xstrdup(val);
} else {
*(p++) = '\0';
aw->name = xstrdup(val);
aw->class = xstrdup(p);
}
aw->num = no;
TAILQ_INSERT_TAIL(&conf->autogroupq, aw, entry);
}
static void
group_setactive(struct screen_ctx *sc, long idx)
{