mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-15 23:22:53 +08:00
funced: don't try to source interactive-only function
Regressed in 2c2ab0c1f (Always `source` file after `funced` (#10318), 2024-02-22) which was only intended for functions that are backed by a file.
This commit is contained in:
parent
f062ad3ad6
commit
5c3a0251b7
@ -104,7 +104,9 @@ function funced --description 'Edit function definition'
|
||||
echo (_ "If the editor is still running, check if it waits for completion, maybe a '--wait' option?")
|
||||
# Source but don't save an unmodified file.
|
||||
# (Source in case the file changed externally since we first loaded it.)
|
||||
source "$writepath"
|
||||
if set -q writepath[1]
|
||||
source "$writepath"
|
||||
end
|
||||
break
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user