From ecf3ec65339a624aebddd0127c9e4ecd5c01b619 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 --- herbstluftwm/usr/bin/hlwm-run-or-raise | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'herbstluftwm') diff --git a/herbstluftwm/usr/bin/hlwm-run-or-raise b/herbstluftwm/usr/bin/hlwm-run-or-raise index a06da24..de2dbe1 100755 --- a/herbstluftwm/usr/bin/hlwm-run-or-raise +++ b/herbstluftwm/usr/bin/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