diff options
author | Max Christian Pohle | 2021-12-28 01:16:09 +0100 |
---|---|---|
committer | Max Christian Pohle | 2021-12-28 01:16:09 +0100 |
commit | 848346111d52482a2f4aed6b41879e3a18789d8b (patch) | |
tree | f4266a5a86988cd70703922a99341241cf686b33 /plugin | |
parent | 86d6370a2aeaf85e9f7d716c682b4bb34dcfaad1 (diff) | |
download | vim-recently-used-848346111d52482a2f4aed6b41879e3a18789d8b.tar.bz2 vim-recently-used-848346111d52482a2f4aed6b41879e3a18789d8b.zip |
Fixed: sub-directories were not included
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/vim-recently-used.vim | 4 |
1 files changed, 2 insertions, 2 deletions
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, []) | |||
14 | \ 'title':'Recently used files in directory: '.getcwd(), | 14 | \ 'title':'Recently used files in directory: '.getcwd(), |
15 | \ 'items':sort(map(filter(filter(mapnew(v:oldfiles[:100], | 15 | \ 'items':sort(map(filter(filter(mapnew(v:oldfiles[:100], |
16 | \ {_, p->fnamemodify(p,':p')}), | 16 | \ {_, p->fnamemodify(p,':p')}), |
17 | \ "fnamemodify(v:val, ':h') ==# \'" . | 17 | \ "fnamemodify(v:val, ':h') =~? \'" . |
18 | \ getcwd()->fnamemodify(':p:h')."\'"), | 18 | \ getcwd()->fnamemodify(':p:h')->escape(' \')."\'"), |
19 | \ 'filereadable(v:val)'), | 19 | \ 'filereadable(v:val)'), |
20 | \ {_, p->{'filename': p, | 20 | \ {_, p->{'filename': p, |
21 | \ 'module': printf("%s | %-*s ", | 21 | \ 'module': printf("%s | %-*s ", |