diff options
author | 2009-02-10 10:02:06 -0500 | |
---|---|---|
committer | 2009-02-10 10:02:06 -0500 | |
commit | 59c9eb6528d1759bc2734150cb3d99ec2e3eab5b (patch) | |
tree | ac3acec9ffd7ec3835149ff79bca736f8e337f3f /modules/textadept/run.lua | |
parent | 5e83c949c15f75858e1602a6989c8c3d20753be3 (diff) | |
download | textadept-59c9eb6528d1759bc2734150cb3d99ec2e3eab5b.tar.gz textadept-59c9eb6528d1759bc2734150cb3d99ec2e3eab5b.zip |
Use a _type field for special _print() buffers' titles instead of 'Untitled'.
Diffstat (limited to 'modules/textadept/run.lua')
-rw-r--r-- | modules/textadept/run.lua | 3 |
1 files changed, 2 insertions, 1 deletions
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) } |