mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Fix funced when using the built-in editor
This commit is contained in:
parent
17049ce919
commit
e09e1e8e41
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue