aboutsummaryrefslogtreecommitdiff
path: root/data/core/commandview.lua
diff options
context:
space:
mode:
authorjgmdev <jgmdev@gmail.com>2022-05-12 20:33:01 -0400
committerjgmdev <jgmdev@gmail.com>2022-05-12 20:33:01 -0400
commitfd0a433f59ddcd6c6d1f8de83db2da1079b93868 (patch)
tree6167289d4202afe366cee16cbda6096ddc83e6cd /data/core/commandview.lua
parent0665da49ae4546de7cb701e151e6f2805eea8e12 (diff)
downloadlite-xl-fd0a433f59ddcd6c6d1f8de83db2da1079b93868.tar.gz
lite-xl-fd0a433f59ddcd6c6d1f8de83db2da1079b93868.zip
object: made is() stricter and added extends()
Currently some plugins had/have issues with predicates that check if active view is a docview to perform certain operations like draw in the case of minimap or lineguide. Since is() was checking the entire inheritance tree it was returning true for views that inherit from the same parent, which caused CommandView to be matched along DocView, etc... This change does the following to solve the issue: * Make Object:is() only match the top level parent of the object which is more in line with what one would expect from a method named 'is'. * Introduces Object:extends() which keeps the same functionality that Object:is() offered before.
Diffstat (limited to 'data/core/commandview.lua')
0 files changed, 0 insertions, 0 deletions