Skip to content

Commit

Permalink
funced: don't try to source interactive-only function
Browse files Browse the repository at this point in the history
Regressed in 2c2ab0c (Always `source` file after `funced` (#10318),
2024-02-22) which was only intended for functions that are backed by a file.
  • Loading branch information
krobelus committed Apr 12, 2024
1 parent f062ad3 commit 5c3a025
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion share/functions/funced.fish
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5c3a025

Please sign in to comment.