aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2016-08-29 15:28:13 +0200
committerGravatar Tom Willemse2016-08-29 15:28:13 +0200
commit886d76ec367f1e27c024b6a345ea3bbba9e7d56a (patch)
treea7f6da5ebe35cd6fb33bb9e7b13a92d9f87ad2c4
parent1a983b2bc32b53f6cd5a9037db6f82e83073bb10 (diff)
downloadhlwm-run-or-raise-886d76ec367f1e27c024b6a345ea3bbba9e7d56a.tar.gz
hlwm-run-or-raise-886d76ec367f1e27c024b6a345ea3bbba9e7d56a.zip
Handle not having an active window
-rwxr-xr-xhlwm-run-or-raise2
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)