diff options
Diffstat (limited to 'modules/textadept')
-rw-r--r-- | modules/textadept/editing.lua | 6 | ||||
-rw-r--r-- | modules/textadept/menu.lua | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/textadept/editing.lua b/modules/textadept/editing.lua index d0331965..45b6e7d2 100644 --- a/modules/textadept/editing.lua +++ b/modules/textadept/editing.lua @@ -688,7 +688,7 @@ local api_docs -- @see api_files -- @see buffer.word_chars function M.show_documentation(pos, case_insensitive) - if buffer:call_tip_active() then events.emit(events.CALL_TIP_CLICK) return end + if view:call_tip_active() then events.emit(events.CALL_TIP_CLICK) return end local api_files = M.api_files[buffer:get_lexer(true)] if not api_files then return end if not assert_type(pos, 'number/nil', 1) then pos = buffer.current_pos end @@ -738,7 +738,7 @@ function M.show_documentation(pos, case_insensitive) end api_docs[i] = doc end - buffer:call_tip_show(pos, api_docs[api_docs.i]) + view:call_tip_show(pos, api_docs[api_docs.i]) end -- Cycle through apidoc calltips. events.connect(events.CALL_TIP_CLICK, function(position) @@ -749,7 +749,7 @@ events.connect(events.CALL_TIP_CLICK, function(position) elseif api_docs.i < 1 then api_docs.i = #api_docs end - buffer:call_tip_show(api_docs.pos, api_docs[api_docs.i]) + view:call_tip_show(api_docs.pos, api_docs[api_docs.i]) end) return M diff --git a/modules/textadept/menu.lua b/modules/textadept/menu.lua index c998ade6..19262ca6 100644 --- a/modules/textadept/menu.lua +++ b/modules/textadept/menu.lua @@ -257,7 +257,7 @@ local default_menubar = { "'%s' (U+%04X:%s)\n%s %s\n%s %s (%d)", char, utf8.codepoint(char), bytes, _L['Lexer'], buffer:get_lexer(true), _L['Style'], buffer:name_of_style(style), style) - buffer:call_tip_show(buffer.current_pos, text) + view:call_tip_show(buffer.current_pos, text) end} }, { |