From 848346111d52482a2f4aed6b41879e3a18789d8b Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Tue, 28 Dec 2021 01:16:09 +0100 Subject: Fixed: sub-directories were not included --- plugin/vim-recently-used.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugin') diff --git a/plugin/vim-recently-used.vim b/plugin/vim-recently-used.vim index c5570fd..ecd8cb9 100644 --- a/plugin/vim-recently-used.vim +++ b/plugin/vim-recently-used.vim @@ -14,8 +14,8 @@ command! RecentlyUsed call setloclist(0, []) \ 'title':'Recently used files in directory: '.getcwd(), \ 'items':sort(map(filter(filter(mapnew(v:oldfiles[:100], \ {_, p->fnamemodify(p,':p')}), - \ "fnamemodify(v:val, ':h') ==# \'" . - \ getcwd()->fnamemodify(':p:h')."\'"), + \ "fnamemodify(v:val, ':h') =~? \'" . + \ getcwd()->fnamemodify(':p:h')->escape(' \')."\'"), \ 'filereadable(v:val)'), \ {_, p->{'filename': p, \ 'module': printf("%s | %-*s ", -- cgit v1.2.3