aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/run.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2009-02-10 10:02:06 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2009-02-10 10:02:06 -0500
commit59c9eb6528d1759bc2734150cb3d99ec2e3eab5b (patch)
treeac3acec9ffd7ec3835149ff79bca736f8e337f3f /modules/textadept/run.lua
parent5e83c949c15f75858e1602a6989c8c3d20753be3 (diff)
downloadtextadept-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.lua3
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) }