Added test cases for 'mark --toggle' (#1463)

This commit is contained in:
Ingo Bürk
2015-03-28 23:14:59 +01:00
parent 47222ab261
commit 7a75cb7e0b
2 changed files with 70 additions and 4 deletions

View File

@ -1061,10 +1061,11 @@ void cmd_mark(I3_CMD, char *mark, char *toggle) {
TAILQ_FOREACH(con, &all_cons, all_cons) {
/* Skip matched windows, we took care of them already. */
bool matched = false;
TAILQ_FOREACH(current, &owindows, owindows)
if (current->con == con) {
matched = true;
break;
TAILQ_FOREACH(current, &owindows, owindows) {
if (current->con == con) {
matched = true;
break;
}
}
if (matched)
continue;