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/ext/find.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'core/ext/find.lua') diff --git a/core/ext/find.lua b/core/ext/find.lua index cc7763d6..566ff0d9 100644 --- a/core/ext/find.lua +++ b/core/ext/find.lua @@ -124,7 +124,8 @@ function find.find(text, next, flags, nowrap, wrapped) if #matches == 1 then matches[2] = locale.FIND_NO_RESULTS end matches[#matches + 1] = '' previous_view = view - textadept._print('shows_files_found', table.concat(matches, '\n')) + textadept._print(locale.FIND_FILES_FOUND_BUFFER, + table.concat(matches, '\n')) end return end @@ -255,7 +256,7 @@ end -- @param pos The position of the caret. -- @param line_num The line double-clicked. function goto_file(pos, line_num) - if buffer.shows_files_found then + if buffer._type == textadept.locale.FIND_FILES_FOUND_BUFFER then line = buffer:get_line(line_num) local file, line_num = line:match('^(.+):(%d+):.+$') if file and line_num then -- cgit v1.2.3