aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Christian Pohle2022-01-15 01:17:27 +0100
committerMax Christian Pohle2022-01-15 01:17:27 +0100
commitb0762c939a9c1cd1e8e8d88d3491c28d556e993e (patch)
tree9bb8c2c5585c59b987e638779f85aad951b9c69c
parent848346111d52482a2f4aed6b41879e3a18789d8b (diff)
downloadvim-recently-used-b0762c939a9c1cd1e8e8d88d3491c28d556e993e.tar.bz2
vim-recently-used-b0762c939a9c1cd1e8e8d88d3491c28d556e993e.zip
mapnew replaced with map(copy( to support "good old" debianHEADmaster
-rw-r--r--plugin/vim-recently-used.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/vim-recently-used.vim b/plugin/vim-recently-used.vim
index ecd8cb9..f3c4b00 100644
--- a/plugin/vim-recently-used.vim
+++ b/plugin/vim-recently-used.vim
@@ -12,7 +12,7 @@ command! RecentlyUsed call setloclist(0, [])
12 \ | setfiletype qf 12 \ | setfiletype qf
13 \ | call setloclist(0, [], 'r', { 13 \ | call setloclist(0, [], 'r', {
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(map(copy(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')->escape(' \')."\'"), 18 \ getcwd()->fnamemodify(':p:h')->escape(' \')."\'"),
..