diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2016-09-26 18:53:32 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2016-09-27 16:10:34 +0200 |
commit | 6f55d1377f4c4442f66c67471001e666a97f9195 (patch) | |
tree | f2a4363736493baa56bc8124d02317c568b7b220 /scripts/gendispatch.lua | |
parent | ddb9f027126b54e6015401c4f0320db4f25d2a5a (diff) | |
download | rneovim-6f55d1377f4c4442f66c67471001e666a97f9195.tar.gz rneovim-6f55d1377f4c4442f66c67471001e666a97f9195.tar.bz2 rneovim-6f55d1377f4c4442f66c67471001e666a97f9195.zip |
api: restore old return type of deprecated ui_try_resize method
Diffstat (limited to 'scripts/gendispatch.lua')
-rw-r--r-- | scripts/gendispatch.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/gendispatch.lua b/scripts/gendispatch.lua index 40507d0afe..65e4559491 100644 --- a/scripts/gendispatch.lua +++ b/scripts/gendispatch.lua @@ -133,6 +133,11 @@ for i,f in ipairs(shallowcopy(functions)) do end local newf = shallowcopy(f) 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.noeval = true newf.deprecated_since = 1 |