From e09e1e8e4172c4649ba09bad5649b66565cde858 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sat, 27 Oct 2018 17:19:00 -0700 Subject: [PATCH] Fix funced when using the built-in editor --- share/functions/funced.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/funced.fish b/share/functions/funced.fish index 279f96b95..f4a53235e 100644 --- a/share/functions/funced.fish +++ b/share/functions/funced.fish @@ -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