From: Michael Stapelberg Date: Fri, 16 Apr 2010 20:50:20 +0000 (+0200) Subject: check for empty matches X-Git-Tag: tree-pr1~250 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bb220b27d7b0706f270250fcca809cd316c34b02;p=i3%2Fi3 check for empty matches --- diff --git a/src/cmdparse.y b/src/cmdparse.y index 81dd148d..f588ad1a 100644 --- a/src/cmdparse.y +++ b/src/cmdparse.y @@ -285,7 +285,7 @@ kill: printf("killing!\n"); /* TODO: check if the match is empty, not if the result is empty */ - if (TAILQ_EMPTY(&owindows)) + if (match_is_empty(¤t_match)) tree_close(focused); else { TAILQ_FOREACH(current, &owindows, owindows) {