From b0762c939a9c1cd1e8e8d88d3491c28d556e993e Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Sat, 15 Jan 2022 01:17:27 +0100 Subject: mapnew replaced with map(copy( to support "good old" debian --- plugin/vim-recently-used.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, []) \ | setfiletype qf \ | call setloclist(0, [], 'r', { \ 'title':'Recently used files in directory: '.getcwd(), - \ 'items':sort(map(filter(filter(mapnew(v:oldfiles[:100], + \ 'items':sort(map(filter(filter(map(copy(v:oldfiles[:100]), \ {_, p->fnamemodify(p,':p')}), \ "fnamemodify(v:val, ':h') =~? \'" . \ getcwd()->fnamemodify(':p:h')->escape(' \')."\'"), -- cgit v1.2.3