diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-05-31 18:16:03 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-06-07 00:27:26 +0200 |
commit | b4b09afabd2e25c078881433a6229a9e051384ca (patch) | |
tree | 680ed2e16f5c357015469f8fdafa59085cffa452 /test/functional/helpers.lua | |
parent | d07661b9a38225e1a29465bbbe54c99ca4038392 (diff) | |
download | rneovim-b4b09afabd2e25c078881433a6229a9e051384ca.tar.gz rneovim-b4b09afabd2e25c078881433a6229a9e051384ca.tar.bz2 rneovim-b4b09afabd2e25c078881433a6229a9e051384ca.zip |
test: iswin(): detect without nvim session
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r-- | test/functional/helpers.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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. |