diff options
author | 2016-08-29 15:28:13 +0200 | |
---|---|---|
committer | 2016-08-29 15:28:13 +0200 | |
commit | 886d76ec367f1e27c024b6a345ea3bbba9e7d56a (patch) | |
tree | a7f6da5ebe35cd6fb33bb9e7b13a92d9f87ad2c4 | |
parent | 1a983b2bc32b53f6cd5a9037db6f82e83073bb10 (diff) | |
download | hlwm-run-or-raise-886d76ec367f1e27c024b6a345ea3bbba9e7d56a.tar.gz hlwm-run-or-raise-886d76ec367f1e27c024b6a345ea3bbba9e7d56a.zip |
Handle not having an active window
-rwxr-xr-x | hlwm-run-or-raise | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hlwm-run-or-raise b/hlwm-run-or-raise index a06da24..de2dbe1 100755 --- a/hlwm-run-or-raise +++ b/hlwm-run-or-raise @@ -14,7 +14,7 @@ (submatch "0x" (+ hex-digit)) "\n")) (match (regexp-search re output))) - (match:substring match 1))) + (and match (match:substring match 1)))) (define (pull-element-to-front elt collection) (if (string= (car collection) elt) |