check for empty matches
This commit is contained in:
parent
e0b7ae872e
commit
bb220b27d7
@ -285,7 +285,7 @@ kill:
|
|||||||
|
|
||||||
printf("killing!\n");
|
printf("killing!\n");
|
||||||
/* TODO: check if the match is empty, not if the result is empty */
|
/* 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);
|
tree_close(focused);
|
||||||
else {
|
else {
|
||||||
TAILQ_FOREACH(current, &owindows, owindows) {
|
TAILQ_FOREACH(current, &owindows, owindows) {
|
||||||
|
Loading…
Reference in New Issue
Block a user