diff options
author | 2020-07-29 19:58:08 -0400 | |
---|---|---|
committer | 2020-07-29 19:58:08 -0400 | |
commit | df1862134f65acc19551bd61b1de41a77d645a00 (patch) | |
tree | 080eeeb034057bbdb3c9974b2a8abcccdb62dd93 /modules/textadept | |
parent | 1528fa7e39a0babbea853ae431f203b89e02a342 (diff) | |
download | textadept-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.lua | 2 |
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 |