[Files] Do not set up lengthy prompt on narrow screen
This commit is contained in:
parent
df79877245
commit
e7928d154a
1 changed files with 1 additions and 1 deletions
|
@ -281,7 +281,7 @@ function! fzf#vim#files(dir, ...)
|
|||
let dir = s:shortpath()
|
||||
endif
|
||||
|
||||
let args.options = ['-m', '--prompt', dir]
|
||||
let args.options = ['-m', '--prompt', strwidth(dir) < &columns / 2 - 20 ? dir : '> ']
|
||||
call s:merge_opts(args, get(g:, 'fzf_files_options', []))
|
||||
return s:fzf('files', args, a:000)
|
||||
endfunction
|
||||
|
|
Loading…
Add table
Reference in a new issue