From df1862134f65acc19551bd61b1de41a77d645a00 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 29 Jul 2020 19:58:08 -0400 Subject: 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. --- modules/textadept/find.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/textadept') 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 -- cgit v1.2.3