mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-18 16:45:38 -05:00
Added a filter to remove the empty lines when listing buffers
@@ -51,7 +51,7 @@ array as the source. In the following example, we use the names of the open
|
|||||||
buffers as the source.
|
buffers as the source.
|
||||||
|
|
||||||
```vim
|
```vim
|
||||||
call fzf#run({'source': map(range(1, bufnr('$')), 'bufname(v:val)'),
|
call fzf#run({'source': map(filter(range(1, bufnr('$')), 'buflisted(v:val)'), 'bufname(v:val)'),
|
||||||
\ 'sink': 'e', 'down': '30%'})
|
\ 'sink': 'e', 'down': '30%'})
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user