diff options
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) } |