From 886d76ec367f1e27c024b6a345ea3bbba9e7d56a Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 29 Aug 2016 15:28:13 +0200 Subject: Handle not having an active window --- hlwm-run-or-raise | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3-54-g00ecf