Fix funced when using the built-in editor

This commit is contained in:
ridiculousfish 2018-10-27 17:19:00 -07:00
parent 17049ce919
commit e09e1e8e41

View file

@ -61,7 +61,7 @@ function funced --description 'Edit function definition'
set -l prompt 'printf "%s%s%s> " (set_color green) '$funcname' (set_color normal)'
if read -p $prompt -c "$init" --shell cmd
echo -n $cmd | fish_indent | read -lz cmd
$cmd
eval "$cmd"
end
if set -q _flag_save
funcsave $funcname