Use Object:is instead of direct metatable comparison in autocomplete
This commit is contained in:
@@ -271,7 +271,7 @@ local function get_partial_symbol()
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function get_active_view()
|
local function get_active_view()
|
||||||
if getmetatable(core.active_view) == DocView then
|
if core.active_view:is(DocView) then
|
||||||
return core.active_view
|
return core.active_view
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user