From 59c9eb6528d1759bc2734150cb3d99ec2e3eab5b Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Tue, 10 Feb 2009 10:02:06 -0500 Subject: Use a _type field for special _print() buffers' titles instead of 'Untitled'. --- modules/textadept/run.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/textadept') diff --git a/modules/textadept/run.lua b/modules/textadept/run.lua index f60bf2b5..147c8055 100644 --- a/modules/textadept/run.lua +++ b/modules/textadept/run.lua @@ -179,7 +179,8 @@ local error_details = { -- @param line_num The line double-clicked. -- @see error_details function goto_error(pos, line_num) - if buffer.shows_messages or buffer.shows_errors then + local locale = textadept.locale + if buffer._type == locale.MESSAGE_BUFFER or buffer._type == 'error_buffer' then line = buffer:get_line(line_num) for _, error_detail in pairs(error_details) do local captures = { line:match(error_detail.pattern) } -- cgit v1.2.3