functions/funced: harmonize interpretation of VISUAL/EDITOR

Like other tools, we split $EDITOR by spaces and remove backslashes in Alt+e
and Alt+o but not in funced. Let's' fix this inconsistency.
This commit is contained in:
Johannes Altmanninger 2024-01-27 07:41:52 +01:00
parent a9618477ec
commit 5f459446a8

View File

@ -35,9 +35,9 @@ function funced --description 'Edit function definition'
else if set -q _flag_editor
set editor $_flag_editor
else if set -q VISUAL
set editor $VISUAL
echo $VISUAL | read -at editor
else if set -q EDITOR
set editor $EDITOR
echo $EDITOR | read -at editor
else
set editor fish
end