aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/find.lua
diff options
context:
space:
mode:
Diffstat (limited to 'modules/textadept/find.lua')
-rw-r--r--modules/textadept/find.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/textadept/find.lua b/modules/textadept/find.lua
index d4422963..f83c626c 100644
--- a/modules/textadept/find.lua
+++ b/modules/textadept/find.lua
@@ -373,9 +373,9 @@ function M.goto_file_found(line, next)
-- Goto the source of the search result.
local file, line_num = buffer:get_cur_line():match('^(.+):(%d+):.+$')
if not file then if CURSES then view:goto_buffer(cur_buf) end return end
- _M.textadept.editing.select_line()
+ textadept.editing.select_line()
ui.goto_file(file, true, preferred_view)
- _M.textadept.editing.goto_line(line_num)
+ textadept.editing.goto_line(line_num)
end
events.connect(events.DOUBLE_CLICK, function(pos, line)
if is_ff_buf(buffer) then M.goto_file_found(line) end