runtime/lua/vim/compat.lua

ref #9280
Introduce the `vim.compat` module, to help environments with system Lua
5.2+ run the build/tests. Include the module implicitly in all tests.

ref #8677
legacy `vim` module:
    beep
    buffer
    command
    dict
    eval
    firstline
    lastline
    line
    list
    open
    type
    window
This commit is contained in:
Justin M. Keyes
2018-11-29 22:51:20 +01:00
parent e6d0dea42b
commit 221f6fffad
18 changed files with 32 additions and 18 deletions

View File

@@ -12,7 +12,6 @@ local meth_pcall = helpers.meth_pcall
local meths = helpers.meths
local command = helpers.command
local expect_err = helpers.expect_err
local unpack = table.unpack or unpack -- luacheck: ignore
-- check if str is visible at the beginning of some line
local function is_visible(str)