diff --git a/PSFzf.Functions.ps1 b/PSFzf.Functions.ps1 index 3382b88..32377c0 100644 --- a/PSFzf.Functions.ps1 +++ b/PSFzf.Functions.ps1 @@ -88,7 +88,8 @@ function Get-EditorLaunch() { } } function Invoke-FuzzyEdit() { - param($Directory = ".", [switch]$Wait) + param($Directory = ".", [switch]$Wait=[System.Boolean]$ENV:PSFZF_EDITOR_WAIT) + $files = @() try {