mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	 Matěj Cepl
					Matěj Cepl
				
			
				
					committed by
					
						 Justin M. Keyes
						Justin M. Keyes
					
				
			
			
				
	
			
			
			 Justin M. Keyes
						Justin M. Keyes
					
				
			
						parent
						
							279043d625
						
					
				
				
					commit
					a8a38f3465
				
			| @@ -1,4 +1,3 @@ | ||||
| require('vim.compat') | ||||
| require('coxpcall') | ||||
| local luv = require('luv') | ||||
| local lfs = require('lfs') | ||||
|   | ||||
| @@ -1,3 +1,4 @@ | ||||
| require('vim.compat') | ||||
| local assert = require('luassert') | ||||
| local luv = require('luv') | ||||
| local lfs = require('lfs') | ||||
|   | ||||
| @@ -114,8 +114,7 @@ local lua2obj_type_tab = { | ||||
|                      api.xmalloc(len * ffi.sizeof('KeyValuePair'))), | ||||
|     }}) | ||||
|     for i = 1, len do | ||||
|       local table_unpack = table.unpack or unpack  -- luacheck: compat | ||||
|       local key, val = table_unpack(kvs[i]) | ||||
|       local key, val = 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)}) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user