diff options
author | 2009-02-10 10:02:06 -0500 | |
---|---|---|
committer | 2009-02-10 10:02:06 -0500 | |
commit | 59c9eb6528d1759bc2734150cb3d99ec2e3eab5b (patch) | |
tree | ac3acec9ffd7ec3835149ff79bca736f8e337f3f /core/events.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 'core/events.lua')
-rw-r--r-- | core/events.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/events.lua b/core/events.lua index 946d0874..52093fc3 100644 --- a/core/events.lua +++ b/core/events.lua @@ -359,7 +359,7 @@ local title_text = '%s %s Textadept (%s)' -- @param buffer The currently focused buffer. local function set_title(buffer) local buffer = buffer - local filename = buffer.filename or textadept.locale.UNTITLED + local filename = buffer.filename or buffer._type or textadept.locale.UNTITLED local d = buffer.dirty and '*' or '-' textadept.title = string.format(title_text, filename:match('[^/\\]+$'), d, filename) @@ -475,4 +475,4 @@ end -- Default error handler. -- Prints the errors to an error buffer. -- @param ... Error strings. -function error(...) textadept._print('shows_errors', ...) end +function error(...) textadept._print(textadept.locale.ERROR_BUFFER, ...) end |