Skip to content

Commit

Permalink
funcsave: Always use local $funcdir
Browse files Browse the repository at this point in the history
This abused default scope
  • Loading branch information
faho committed Oct 19, 2023
1 parent dd12f55 commit e494e15
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions share/functions/funcsave.fish
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ function funcsave --description "Save the current definition of all specified fu
return 0
end

set -l funcdir
if set -q _flag_directory
set funcdir $_flag_directory
else
Expand Down

0 comments on commit e494e15

Please sign in to comment.