From c7039fd0d3f6f5d7c8699fd88095e100f0754e59 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Mon, 1 Apr 2019 23:21:38 +0200 Subject: test: "$PATHEXT=::" --- src/nvim/os/fs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/nvim/os/fs.c b/src/nvim/os/fs.c index 91ed639a1b..8d9de1253e 100644 --- a/src/nvim/os/fs.c +++ b/src/nvim/os/fs.c @@ -297,9 +297,9 @@ static bool is_executable(const char *name, char_u **abspath) } #ifdef WIN32 -/// Checks if file `name` is executable under one of these conditions: -/// - if the file extension is in $PATHEXT and `name` is executable -/// - if the result of any $PATHEXT extension appended to `name` is executable +/// Checks if file `name` is executable under any of these conditions: +/// - extension is in $PATHEXT and `name` is executable +/// - result of any $PATHEXT extension appended to `name` is executable static bool is_executable_ext(char *name, char_u **abspath) FUNC_ATTR_NONNULL_ARG(1) { @@ -318,7 +318,7 @@ static bool is_executable_ext(char *name, char_u **abspath) if (is_executable(name, abspath)) { return true; } - // Skip the extension. + // Skip it. ext++; continue; } -- cgit