mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-03 17:24:29 +00:00 
			
		
		
		
	api: restore old return type of deprecated ui_try_resize method
This commit is contained in:
		@@ -133,6 +133,11 @@ for i,f in ipairs(shallowcopy(functions)) do
 | 
				
			|||||||
    end
 | 
					    end
 | 
				
			||||||
    local newf = shallowcopy(f)
 | 
					    local newf = shallowcopy(f)
 | 
				
			||||||
    newf.name = newname
 | 
					    newf.name = newname
 | 
				
			||||||
 | 
					    if newname == "ui_try_resize" then
 | 
				
			||||||
 | 
					      -- The return type was incorrectly set to Object in 0.1.5.
 | 
				
			||||||
 | 
					      -- Keep it that way for clients that rely on this.
 | 
				
			||||||
 | 
					      newf.return_type = "Object"
 | 
				
			||||||
 | 
					    end
 | 
				
			||||||
    newf.impl_name = f.name
 | 
					    newf.impl_name = f.name
 | 
				
			||||||
    newf.noeval = true
 | 
					    newf.noeval = true
 | 
				
			||||||
    newf.deprecated_since = 1
 | 
					    newf.deprecated_since = 1
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user