From 21e6fe5c1bc6cb29e9eac0588e0555879437fdce Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Thu, 20 Jun 2013 15:14:33 -0400 Subject: Fixed bug in find and run double-click event handlers. --- modules/textadept/run.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/textadept/run.lua') diff --git a/modules/textadept/run.lua b/modules/textadept/run.lua index 512d9ea9..a5b1ce67 100644 --- a/modules/textadept/run.lua +++ b/modules/textadept/run.lua @@ -240,7 +240,9 @@ function M.goto_error(line, next) buffer.annotation_style[line - 1] = 8 -- error end end -events.connect(events.DOUBLE_CLICK, function(pos, line) M.goto_error(line) end) +events.connect(events.DOUBLE_CLICK, function(pos, line) + if is_msg_buf(buffer) then M.goto_error(line) end +end) local CURSES_MARK = _SCINTILLA.constants.SC_MARK_CHARACTER + string.byte(' ') -- Sets view properties for error markers. -- cgit v1.2.3