From 465cf8345a38fdb078672c34dbd25c4e89c3dcf6 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 15 Jun 2016 08:50:28 -0400 Subject: Changed some of 'lfs_ext' API. Renamed `lfs.FILTER` to `lfs.default_filter` and removed `exclude_FILTER` argument from `lfs.dir_foreach()`. --- modules/textadept/find.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'modules/textadept') diff --git a/modules/textadept/find.lua b/modules/textadept/find.lua index 78b83d4f..9689b025 100644 --- a/modules/textadept/find.lua +++ b/modules/textadept/find.lua @@ -101,13 +101,13 @@ local preferred_view -- -- Any patterns starting with '!' exclude files and directories that do not -- match the pattern that follows. --- The default value is `lfs.FILTER`, a filter for common binary file extensions --- and version control directories. +-- The default value is `lfs.default_filter`, a filter for common binary file +-- extensions and version control directories. -- @see find_in_files --- @see lfs.FILTER +-- @see lfs.default_filter -- @class table -- @name FILTER -M.FILTER = lfs.FILTER +M.FILTER = lfs.default_filter -- Text escape sequences with their associated characters and vice-versa. -- @class table @@ -310,7 +310,7 @@ function M.find_in_files(dir) line_num = line_num + 1 end f:close() - end, M.FILTER, true) + end, M.FILTER) if not found then buffer:append_text(_L['No results found']) end ui._print(_L['[Files Found Buffer]'], '') -- goto end, set save pos, etc. end -- cgit v1.2.3