mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.3079: Powershell core not supported by default
Problem: Powershell core not supported by default. Solution: Set option defaults for "pwsh". (Mike Williams, closes #8481)
This commit is contained in:
committed by
Bram Moolenaar
parent
834193afd7
commit
a3d1b29bd3
@@ -5222,6 +5222,7 @@ vim_tempname(
|
||||
WCHAR *chartab = L"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
||||
char_u *retval;
|
||||
char_u *p;
|
||||
char_u *shname;
|
||||
long i;
|
||||
|
||||
wcscpy(itmp, L"");
|
||||
@@ -5247,8 +5248,10 @@ vim_tempname(
|
||||
// "sh". NOTE: This also checks 'shellcmdflag' to help those people who
|
||||
// didn't set 'shellslash' but only if not using PowerShell.
|
||||
retval = utf16_to_enc(itmp, NULL);
|
||||
if ((strstr((char *)gettail(p_sh), "powershell") == NULL
|
||||
&& *p_shcf == '-') || p_ssl)
|
||||
shname = gettail(p_sh);
|
||||
if ((*p_shcf == '-' && !(strstr((char *)shname, "powershell") != NULL
|
||||
|| strstr((char *)shname, "pwsh") != NULL ))
|
||||
|| p_ssl)
|
||||
for (p = retval; *p; ++p)
|
||||
if (*p == '\\')
|
||||
*p = '/';
|
||||
|
Reference in New Issue
Block a user