summaryrefslogtreecommitdiff
path: root/src/os_win32.c
diff options
context:
space:
mode:
authorMike Williams <mikew@globalgraphics.com>2021-06-28 20:53:58 +0200
committerBram Moolenaar <Bram@vim.org>2021-06-28 20:53:58 +0200
commit127950241e84c822d3c50f46a00d42a70d2d5cb6 (patch)
tree6b5a0ac43a29edeb6e1cc3c3fb9f7c6f966cb28e /src/os_win32.c
parentffec6dd16a766180429addaa78928c773a3c9832 (diff)
downloadvim-git-127950241e84c822d3c50f46a00d42a70d2d5cb6.tar.gz
patch 8.2.3071: shell options are not set properly for PowerShellv8.2.3071
Problem: Shell options are not set properly for PowerShell. Solution: Use better option defaults. (Mike Willams, closes #8459)
Diffstat (limited to 'src/os_win32.c')
-rw-r--r--src/os_win32.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/os_win32.c b/src/os_win32.c
index a966c5349..1a005c9d5 100644
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -2142,7 +2142,8 @@ executable_exists(char *name, char_u **path, int use_path, int use_pathext)
return FALSE;
// Using the name directly when a Unix-shell like 'shell'.
- if (strstr((char *)gettail(p_sh), "sh") != NULL)
+ if (strstr((char *)gettail(p_sh), "powershell") == NULL
+ && strstr((char *)gettail(p_sh), "sh") != NULL)
noext = TRUE;
if (use_pathext)