diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-03-01 18:28:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-01 18:28:45 +0100 |
commit | 2c408c0c94915b6c38c1eccdb68b2645829130c2 (patch) | |
tree | a4712c411404a6125d3428c57d08bf019c7b9c28 /test/unit/api/helpers.lua | |
parent | 4e4c7850635dfa3218f2461b50a0b2b2c84d7242 (diff) | |
parent | 4306e5ae0c2a31ea6798af41f7033771af9af6d5 (diff) | |
download | rneovim-2c408c0c94915b6c38c1eccdb68b2645829130c2.tar.gz rneovim-2c408c0c94915b6c38c1eccdb68b2645829130c2.tar.bz2 rneovim-2c408c0c94915b6c38c1eccdb68b2645829130c2.zip |
Merge #6185 from justinmk/term-cursor
terminal: Keep cursor position; Disable 'cursorline'
Diffstat (limited to 'test/unit/api/helpers.lua')
-rw-r--r-- | test/unit/api/helpers.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit/api/helpers.lua b/test/unit/api/helpers.lua index 883e1c6c19..166456d2a1 100644 --- a/test/unit/api/helpers.lua +++ b/test/unit/api/helpers.lua @@ -106,7 +106,8 @@ local lua2obj_type_tab = { api.xmalloc(len * ffi.sizeof('KeyValuePair'))), }}) for i = 1, len do - local key, val = table.unpack(kvs[i]) + local table_unpack = table.unpack or unpack -- luacheck: compat + local key, val = table_unpack(kvs[i]) dct.data.dictionary.items[i - 1] = ffi.new( 'KeyValuePair', {key=ffi.gc(lua2obj(key), nil).data.string, value=ffi.gc(lua2obj(val), nil)}) |