From 06b995377756483d77d7a92a91596408477d4775 Mon Sep 17 00:00:00 2001 From: Guldoman Date: Sun, 14 Aug 2022 02:02:57 +0200 Subject: [PATCH] Use `Object:is` instead of direct metatable comparison in `autocomplete` --- data/plugins/autocomplete.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/plugins/autocomplete.lua b/data/plugins/autocomplete.lua index 2a9cff0f..9a223b5e 100644 --- a/data/plugins/autocomplete.lua +++ b/data/plugins/autocomplete.lua @@ -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