aboutsummaryrefslogtreecommitdiff
path: root/runtime/compiler/powershell.vim
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-11-20 08:53:12 +0100
committerChristian Clason <ch.clason+github@icloud.com>2024-11-20 09:27:36 +0100
commitfd57f39766c9f26da739214288f90be74223c3cd (patch)
tree42715107bb0ea79e489b809d57b01e857a60934a /runtime/compiler/powershell.vim
parentac7e0ff32ff18be69e2469ff7fc66370be20a6e1 (diff)
downloadrneovim-fd57f39766c9f26da739214288f90be74223c3cd.tar.gz
rneovim-fd57f39766c9f26da739214288f90be74223c3cd.tar.bz2
rneovim-fd57f39766c9f26da739214288f90be74223c3cd.zip
vim-patch:4927dae: runtime(compiler): fix escaping of arguments passed to :CompilerSet
See newly added help entry referring to option-backslash closes: vim/vim#16084 https://github.com/vim/vim/commit/4927daef608d4bbcdce8a1098cdeeaed3112c849 Co-authored-by: Konfekt <Konfekt@users.noreply.github.com>
Diffstat (limited to 'runtime/compiler/powershell.vim')
-rw-r--r--runtime/compiler/powershell.vim7
1 files changed, 4 insertions, 3 deletions
diff --git a/runtime/compiler/powershell.vim b/runtime/compiler/powershell.vim
index 821fea4085..3d37d7c847 100644
--- a/runtime/compiler/powershell.vim
+++ b/runtime/compiler/powershell.vim
@@ -3,8 +3,9 @@
" URL: https://github.com/PProvost/vim-ps1
" Contributors: Enno Nagel
" Last Change: 2024 Mar 29
-" 2024 Apr 03 by The Vim Project (removed :CompilerSet definition)
-" 2024 Apr 05 by The Vim Project (avoid leaving behind g:makeprg)
+" 2024 Apr 03 by the Vim Project (removed :CompilerSet definition)
+" 2024 Apr 05 by the Vim Project (avoid leaving behind g:makeprg)
+" 2024 Nov 19 by the Vim Project (properly escape makeprg setting)
if exists("current_compiler")
finish
@@ -49,7 +50,7 @@ let s:makeprg = g:ps1_makeprg_cmd .. ' %:p:S'
" + CategoryInfo : ObjectNotFound: (Write-Ouput:String) [], CommandNotFoundException
" + FullyQualifiedErrorId : CommandNotFoundException
-execute 'CompilerSet makeprg=' .. escape(s:makeprg, ' ')
+execute 'CompilerSet makeprg=' .. escape(s:makeprg, ' \|"')
" Showing error in context with underlining.
CompilerSet errorformat=%+G+%m