mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	fix: extend the life of vim.tbl_flatten to 0.13
`vim.iter(t):flatten():totable()` doesn't handle nil so isn't a good enough replacement.
This commit is contained in:
		 Lewis Russell
					Lewis Russell
				
			
				
					committed by
					
						 Lewis Russell
						Lewis Russell
					
				
			
			
				
	
			
			
			 Lewis Russell
						Lewis Russell
					
				
			
						parent
						
							a664246171
						
					
				
				
					commit
					50749f8df8
				
			| @@ -553,7 +553,7 @@ end | ||||
| ---@param t table List-like table | ||||
| ---@return table Flattened copy of the given list-like table | ||||
| function vim.tbl_flatten(t) | ||||
|   vim.deprecate('vim.tbl_flatten', 'vim.iter(…):flatten():totable()', '0.12') | ||||
|   vim.deprecate('vim.tbl_flatten', 'vim.iter(…):flatten():totable()', '0.13') | ||||
|   local result = {} | ||||
|   --- @param _t table<any,any> | ||||
|   local function _tbl_flatten(_t) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user