mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.3071: shell options are not set properly for PowerShell
Problem: Shell options are not set properly for PowerShell. Solution: Use better option defaults. (Mike Willams, closes #8459)
This commit is contained in:
committed by
Bram Moolenaar
parent
ffec6dd16a
commit
127950241e
@@ -5245,9 +5245,10 @@ vim_tempname(
|
||||
|
||||
// Backslashes in a temp file name cause problems when filtering with
|
||||
// "sh". NOTE: This also checks 'shellcmdflag' to help those people who
|
||||
// didn't set 'shellslash'.
|
||||
// didn't set 'shellslash' but only if not using PowerShell.
|
||||
retval = utf16_to_enc(itmp, NULL);
|
||||
if (*p_shcf == '-' || p_ssl)
|
||||
if ((strstr((char *)gettail(p_sh), "powershell") == NULL
|
||||
&& *p_shcf == '-') || p_ssl)
|
||||
for (p = retval; *p; ++p)
|
||||
if (*p == '\\')
|
||||
*p = '/';
|
||||
|
Reference in New Issue
Block a user