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.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/textadept/find.lua b/modules/textadept/find.lua
index 68b43993..d7c34fd3 100644
--- a/modules/textadept/find.lua
+++ b/modules/textadept/find.lua
@@ -378,8 +378,9 @@ function M.goto_file_found(line, next)
gui.goto_file(file, true, preferred_view)
_M.textadept.editing.goto_line(line_num)
end
-events.connect(events.DOUBLE_CLICK,
- function(pos, line) M.goto_file_found(line) end)
+events.connect(events.DOUBLE_CLICK, function(pos, line)
+ if is_ff_buf(buffer) then M.goto_file_found(line) end
+end)
--[[ The functions below are Lua C functions.