aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/textadept/adeptsense.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/adeptsense.lua b/modules/textadept/adeptsense.lua
index 95de505e..bf6439dc 100644
--- a/modules/textadept/adeptsense.lua
+++ b/modules/textadept/adeptsense.lua
@@ -605,7 +605,7 @@ function show_apidoc(sense)
buffer:call_tip_show(buffer.current_pos, apidocs[apidocs.pos])
end)
_G.timeout(1, function()
- if buffer:call_tip_active() then return true end
+ if pcall(buffer.call_tip_active, buffer) then return true end
events.disconnect('call_tip_click', event_id)
end)
return true