aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-04-01 23:21:38 +0200
committerJustin M. Keyes <justinkz@gmail.com>2019-04-02 01:28:11 +0200
commitc7039fd0d3f6f5d7c8699fd88095e100f0754e59 (patch)
tree7ac75bbe0a92a3d17fe2880d7bb2b52f58127830 /src
parent70a0a12b5397b8b787a3196e9196f5fdbf979cf6 (diff)
downloadrneovim-c7039fd0d3f6f5d7c8699fd88095e100f0754e59.tar.gz
rneovim-c7039fd0d3f6f5d7c8699fd88095e100f0754e59.tar.bz2
rneovim-c7039fd0d3f6f5d7c8699fd88095e100f0754e59.zip
test: "$PATHEXT=::"
Diffstat (limited to 'src')
-rw-r--r--src/nvim/os/fs.c8
1 files changed, 4 insertions, 4 deletions
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;
}