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'. --- core/events.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/events.lua') 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 -- cgit v1.2.3