From b4b09afabd2e25c078881433a6229a9e051384ca Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Wed, 31 May 2017 18:16:03 +0200 Subject: [PATCH] test: iswin(): detect without nvim session --- test/functional/helpers.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua index 62b0ce1200..b8512c0ad6 100644 --- a/test/functional/helpers.lua +++ b/test/functional/helpers.lua @@ -174,7 +174,7 @@ local os_name = (function() end)() local function iswin() - return os_name() == 'windows' + return package.config:sub(1,1) == '\\' end -- Executes a VimL function.