mirror of
https://github.com/junegunn/fzf.vim.git
synced 2026-03-07 07:32:02 +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 = ''
|
let curr = ''
|
||||||
for line in split(cout, "\n")
|
for line in split(cout, "\n")
|
||||||
if line =~ "^\t"
|
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')))
|
call add(list, printf('%s %s', curr, s:green(src, 'Comment')))
|
||||||
let curr = ''
|
let curr = ''
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user