diff options
author | Scott Prager <splinterofchaos@gmail.com> | 2014-09-17 00:58:30 -0400 |
---|---|---|
committer | Scott Prager <splinterofchaos@gmail.com> | 2014-09-17 01:00:24 -0400 |
commit | 9445eaa297a7e01c20cb5e5141be54cc7d8d5cce (patch) | |
tree | cb44a949bab57286b4cda4aee8843b39bdef5b12 /test/unit/os/fs_spec.lua | |
parent | 899878d347b4a85e3a19e5bb86f7519cc9255992 (diff) | |
download | rneovim-9445eaa297a7e01c20cb5e5141be54cc7d8d5cce.tar.gz rneovim-9445eaa297a7e01c20cb5e5141be54cc7d8d5cce.tar.bz2 rneovim-9445eaa297a7e01c20cb5e5141be54cc7d8d5cce.zip |
vim-patch:7.4.235
Problem: It is not easy to get the full path of a command.
Solution: Add the exepath() function.
https://code.google.com/p/vim/source/detail?r=5ab2946f7ce560985830fbc3c453bb0f7a01f385
Diffstat (limited to 'test/unit/os/fs_spec.lua')
-rw-r--r-- | test/unit/os/fs_spec.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit/os/fs_spec.lua b/test/unit/os/fs_spec.lua index 67ca8f6c24..eefb1c6867 100644 --- a/test/unit/os/fs_spec.lua +++ b/test/unit/os/fs_spec.lua @@ -11,6 +11,7 @@ local cstr = helpers.cstr local to_cstr = helpers.to_cstr local OK = helpers.OK local FAIL = helpers.FAIL +local NULL = helpers.NULL require('lfs') require('bit') @@ -118,7 +119,7 @@ describe('fs function', function() end) describe('os_can_exe', function() - local function os_can_exe(name) + local function os_can_exe(name, NULL) return fs.os_can_exe((to_cstr(name))) end |