mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-20 16:57:47 +08:00
funcsave: avoid the edited function's path being a temporary file
As functions know where they are loaded from now, there is no point in them being marked as loaded from a temporary file that has been removed. Source the function via a redirect instead.
This commit is contained in:
parent
a40e60b45b
commit
911269c4a9
|
@ -107,7 +107,7 @@ function funced --description 'Edit function definition'
|
|||
end
|
||||
end
|
||||
|
||||
if not source $tmpname
|
||||
if not source <$tmpname
|
||||
# Failed to source the function file. Prompt to try again.
|
||||
echo # add a line between the parse error and the prompt
|
||||
set -l repeat
|
||||
|
|
Loading…
Reference in New Issue
Block a user