Skip to content

Commit

Permalink
Fix Windows shell escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
rbong committed Sep 19, 2024
1 parent 4669c40 commit 6b4aba6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/flog/shell.vim
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function! flog#shell#Escape(str) abort
return a:str
elseif has('win32') && &shellcmdflag !~# '^-'
" Escape in Windows shell
return '"' . s:gsub(s:gsub(a:str, '"', '""'), '\%', '"%"') . '"'
return '"' .. substitute(substitute(a:str, '"', '""', 'g'), '%', '"%"', 'g') .. '"'
else
return shellescape(a:str)
endif
Expand Down

0 comments on commit 6b4aba6

Please sign in to comment.