diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2023-01-16 05:28:56 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-16 05:28:56 -0500 |
commit | 2773685c1df8cfe6cdc7bfc29836641cadeb0726 (patch) | |
tree | 2945ae8e64de68a4c3c6c12c807d1656d46bd098 /src/nvim/os | |
parent | 6383e454abf64d266e0fbf8df019f4e8138fad09 (diff) | |
parent | e5b9485eac1f6d5432d55c04d1b70c0740e22f92 (diff) | |
download | rneovim-2773685c1df8cfe6cdc7bfc29836641cadeb0726.tar.gz rneovim-2773685c1df8cfe6cdc7bfc29836641cadeb0726.tar.bz2 rneovim-2773685c1df8cfe6cdc7bfc29836641cadeb0726.zip |
Merge #21175 exepath() with powershell
Diffstat (limited to 'src/nvim/os')
-rw-r--r-- | src/nvim/os/fs.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/os/fs.c b/src/nvim/os/fs.c index e0449d468a..98ec9aa826 100644 --- a/src/nvim/os/fs.c +++ b/src/nvim/os/fs.c @@ -302,7 +302,9 @@ static bool is_executable(const char *name, char **abspath) static bool is_executable_ext(const char *name, char **abspath) FUNC_ATTR_NONNULL_ARG(1) { - const bool is_unix_shell = strstr((char *)path_tail(p_sh), "sh") != NULL; + const bool is_unix_shell = strstr(path_tail(p_sh), "powershell") == NULL + && strstr(path_tail(p_sh), "pwsh") == NULL + && strstr(path_tail(p_sh), "sh") != NULL; char *nameext = strrchr(name, '.'); size_t nameext_len = nameext ? strlen(nameext) : 0; xstrlcpy(os_buf, name, sizeof(os_buf)); |