mirror of
https://github.com/junegunn/fzf.vim.git
synced 2026-01-15 15:46:53 +08:00
[Maps] Display filename and line number (#998)
Fix #997 Co-authored-by: Ian Homer <ihomer@worth.systems>
This commit is contained in:
@@ -1214,7 +1214,7 @@ function! fzf#vim#maps(mode, ...)
|
||||
let curr = ''
|
||||
for line in split(cout, "\n")
|
||||
if line =~ "^\t"
|
||||
let src = ' '.join(reverse(reverse(split(split(line)[-1], '/'))[0:2]), '/')
|
||||
let src = "\t".substitute(matchstr(line, '/\zs[^/\\]*\ze$'), ' [^ ]* ', ':', '')
|
||||
call add(list, printf('%s %s', curr, s:green(src, 'Comment')))
|
||||
let curr = ''
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user