From 036b708d9906d4f1fcc7ab2389aa06cf5ec05d11 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Thu, 18 May 2017 22:48:41 +0200 Subject: [PATCH] help: Properly error out when no browser is found See #4045. --- share/functions/help.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/help.fish b/share/functions/help.fish index 0473ef8b9..034564cbb 100644 --- a/share/functions/help.fish +++ b/share/functions/help.fish @@ -71,7 +71,7 @@ function help --description 'Show help for the fish shell' end end - if not set -q fish_browser + if not set -q fish_browser[1] printf (_ '%s: Could not find a web browser.\n') help printf (_ 'Please set the variable $BROWSER or fish_help_browser and try again.\n\n') return 1