Use `Object:is` instead of direct metatable comparison in `autocomplete`

This commit is contained in:
Guldoman 2022-08-14 02:02:57 +02:00
parent cf29a6a45f
commit 06b9953777
No known key found for this signature in database
GPG Key ID: EA928C8BDA1A8825
1 changed files with 1 additions and 1 deletions

View File

@ -271,7 +271,7 @@ local function get_partial_symbol()
end
local function get_active_view()
if getmetatable(core.active_view) == DocView then
if core.active_view:is(DocView) then
return core.active_view
end
end