From b5bc50e7e21f27e9620a560c31d7595c8e96ee31 Mon Sep 17 00:00:00 2001 From: Michael Kelley Date: Sat, 20 Jan 2024 21:10:24 -0800 Subject: [PATCH] Quote file path for nano editor (#243) - Fixes part of #242 --- PSFzf.Functions.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PSFzf.Functions.ps1 b/PSFzf.Functions.ps1 index e258dd0..bd4d333 100644 --- a/PSFzf.Functions.ps1 +++ b/PSFzf.Functions.ps1 @@ -83,7 +83,7 @@ function Get-EditorLaunch() { "$editor$editorOptions {0}" -f ($FileList -join ' ') } else { - "$editor$editorOptions +{1} {0}" -f $(Resolve-Path $FileList.Trim('"')), $LineNum + "$editor$editorOptions +{1} ""{0}""" -f $(Resolve-Path $FileList.Trim('"')), $LineNum } } }