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