aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2020-07-29 19:58:08 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2020-07-29 19:58:08 -0400
commitdf1862134f65acc19551bd61b1de41a77d645a00 (patch)
tree080eeeb034057bbdb3c9974b2a8abcccdb62dd93 /modules/textadept
parent1528fa7e39a0babbea853ae431f203b89e02a342 (diff)
downloadtextadept-df1862134f65acc19551bd61b1de41a77d645a00.tar.gz
textadept-df1862134f65acc19551bd61b1de41a77d645a00.zip
Also updated stored filter of initial directory for Find in Files.
If no project is found, and a folder other than the initial one is selected, the filter stored for that directory should still be shown if the user wants to Find in Files again from the same initial directory.
Diffstat (limited to 'modules/textadept')
-rw-r--r--modules/textadept/find.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/find.lua b/modules/textadept/find.lua
index 92489578..48754f2a 100644
--- a/modules/textadept/find.lua
+++ b/modules/textadept/find.lua
@@ -282,7 +282,7 @@ function M.find_in_files(dir, filter)
-- Update stored filter.
local t = {}
for patt in M.replace_entry_text:gmatch('[^;]+') do t[#t + 1] = patt end
- M.find_in_files_filters[dir] = t
+ M.find_in_files_filters[dir], M.find_in_files_filters[ff_dir()] = t, t
end
filter = M.find_in_files_filters[dir] or lfs.default_filter
end