mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user