diff options
author | ZyX <kp-pav@yandex.ru> | 2016-11-05 21:34:22 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-03-29 10:08:44 +0300 |
commit | 5239616297182601a5d244a482e6cef307e901f1 (patch) | |
tree | 7c5e735738b426080e97b1a465d4a63b4c7615a6 /test/functional/helpers.lua | |
parent | 4bcee963471abd939bb9edd1709418e30be7290f (diff) | |
download | rneovim-5239616297182601a5d244a482e6cef307e901f1.tar.gz rneovim-5239616297182601a5d244a482e6cef307e901f1.tar.bz2 rneovim-5239616297182601a5d244a482e6cef307e901f1.zip |
functests: Fix buf_functions test on Windows
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r-- | test/functional/helpers.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua index 13a0cff137..7ce95d0b7c 100644 --- a/test/functional/helpers.lua +++ b/test/functional/helpers.lua @@ -570,6 +570,10 @@ local curbufmeths = create_callindex(curbuf) local curwinmeths = create_callindex(curwin) local curtabmeths = create_callindex(curtab) +local function get_pathsep() + return funcs.fnamemodify('.', ':p'):sub(-1) +end + local M = { prepend_argv = prepend_argv, clear = clear, @@ -635,6 +639,7 @@ local M = { tmpname = tmpname, meth_pcall = meth_pcall, NIL = mpack.NIL, + get_pathsep = get_pathsep, } return function(after_each) |