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)