check for empty matches
This commit is contained in:
parent
e0b7ae872e
commit
bb220b27d7
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user