mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-07-03 01:41:15 -03:00
Fix funced error message when $VISUAL is set
This commit is contained in:
@@ -39,7 +39,11 @@ function funced --description 'Edit function definition'
|
||||
end
|
||||
|
||||
if not type -q -f "$editor[1]"
|
||||
echo (_ "funced: The value for \$EDITOR '$editor' could not be used because the command '$editor[1]' could not be found") >&2
|
||||
if set -q VISUAL
|
||||
echo (_ "funced: The value for \$VISUAL '$editor' could not be used because the command '$editor[1]' could not be found") >&2
|
||||
else
|
||||
echo (_ "funced: The value for \$EDITOR '$editor' could not be used because the command '$editor[1]' could not be found") >&2
|
||||
end
|
||||
set editor fish
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user