aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2016-06-15 08:50:28 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2016-06-15 08:50:28 -0400
commit465cf8345a38fdb078672c34dbd25c4e89c3dcf6 (patch)
tree2dc2899d60c0e95a5eb4da4478a783e2fbac9b7c /modules/textadept
parent7150a93bfa47217e4f1f04acec868ab8163b242d (diff)
downloadtextadept-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')
-rw-r--r--modules/textadept/find.lua10
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