diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-05-21 01:06:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-21 01:06:31 +0200 |
commit | ca1ce590257c35426aeeaac349317d2cb163cd2e (patch) | |
tree | 04f75eccd24174f4723274a7505874d822363b9a /src/nvim/lua/vim.lua | |
parent | b9ba1295b466a440600b36a717c701bfcea53dbc (diff) | |
parent | 5b04a4fa09e0ee09678aec23b1d0233e7c25e3e6 (diff) | |
download | rneovim-ca1ce590257c35426aeeaac349317d2cb163cd2e.tar.gz rneovim-ca1ce590257c35426aeeaac349317d2cb163cd2e.tar.bz2 rneovim-ca1ce590257c35426aeeaac349317d2cb163cd2e.zip |
Merge #9709 'fileio: use os_copy to create backups'
ref #8288
Diffstat (limited to 'src/nvim/lua/vim.lua')
-rw-r--r-- | src/nvim/lua/vim.lua | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/nvim/lua/vim.lua b/src/nvim/lua/vim.lua index 38a8795680..848bccaae6 100644 --- a/src/nvim/lua/vim.lua +++ b/src/nvim/lua/vim.lua @@ -154,15 +154,11 @@ local function _update_package_paths() last_nvim_paths = cur_nvim_paths end ---- Trim whitespace (Lua pattern "%%s") from both sides of a string. +--- Return a human-readable representation of the given object. --- ---@see https://www.lua.org/pil/20.2.html ---@param s String to trim ---@returns String with whitespace removed from its beginning and end -local function trim(s) - assert(type(s) == 'string', 'Only strings can be trimmed') - local result = s:gsub('^%s+', ''):gsub('%s+$', '') - return result +--@see https://github.com/kikito/inspect.lua +local function inspect(object, options) -- luacheck: no unused + error(object, options) -- Stub for gen_vimdoc.py end local function __index(t, key) @@ -181,7 +177,6 @@ local module = { _os_proc_children = _os_proc_children, _os_proc_info = _os_proc_info, _system = _system, - trim = trim, } setmetatable(module, { |