diff options
author | 2016-06-15 08:50:28 -0400 | |
---|---|---|
committer | 2016-06-15 08:50:28 -0400 | |
commit | 465cf8345a38fdb078672c34dbd25c4e89c3dcf6 (patch) | |
tree | 2dc2899d60c0e95a5eb4da4478a783e2fbac9b7c /modules/textadept/find.lua | |
parent | 7150a93bfa47217e4f1f04acec868ab8163b242d (diff) | |
download | textadept-465cf8345a38fdb078672c34dbd25c4e89c3dcf6.tar.gz textadept-465cf8345a38fdb078672c34dbd25c4e89c3dcf6.zip |
Changed some of 'lfs_ext' API.
Renamed `lfs.FILTER` to `lfs.default_filter` and removed `exclude_FILTER`
argument from `lfs.dir_foreach()`.
Diffstat (limited to 'modules/textadept/find.lua')
-rw-r--r-- | modules/textadept/find.lua | 10 |
1 files changed, 5 insertions, 5 deletions
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 |