From bb220b27d7b0706f270250fcca809cd316c34b02 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 16 Apr 2010 22:50:20 +0200 Subject: [PATCH] check for empty matches --- src/cmdparse.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.5