mirror of
https://github.com/junegunn/fzf.vim.git
synced 2025-12-06 12:44:24 +08:00
@@ -612,6 +612,9 @@ endfunction
|
||||
|
||||
function! s:history_source(type)
|
||||
let max = histnr(a:type)
|
||||
if max <= 0
|
||||
return ['No entries']
|
||||
endif
|
||||
let fmt = s:yellow(' %'.len(string(max)).'d ', 'Number')
|
||||
let list = filter(map(range(1, max), 'histget(a:type, - v:val)'), '!empty(v:val)')
|
||||
return extend([' :: Press '.s:magenta('CTRL-E', 'Special').' to edit'],
|
||||
|
||||
Reference in New Issue
Block a user