mirror of
https://github.com/junegunn/fzf.vim.git
synced 2026-01-04 10:34:14 +08:00
Print "[No Name]" when the buffer has no name
This commit is contained in:
@@ -207,6 +207,7 @@ endfunction
|
||||
|
||||
function! s:format_buffer(b)
|
||||
let name = bufname(a:b)
|
||||
let name = empty(name) ? '[No Name]' : name
|
||||
let flag = a:b == bufnr('') ? s:blue('%') :
|
||||
\ (a:b == bufnr('#') ? s:magenta('#') : ' ')
|
||||
let modified = getbufvar(a:b, '&modified') ? s:red(' [+]') : ''
|
||||
|
||||
Reference in New Issue
Block a user