mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 08:39:37 +08:00
Fix funced when using the built-in editor
This commit is contained in:
parent
17049ce919
commit
e09e1e8e41
|
@ -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 New Issue
Block a user