From 8000d46d3e4930b25de62053a79620900c634ee2 Mon Sep 17 00:00:00 2001 From: Ian Howell Date: Sun, 10 Feb 2019 00:16:37 -0600 Subject: [PATCH] Added a filter to remove the empty lines when listing buffers --- Examples-(vim).md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Examples-(vim).md b/Examples-(vim).md index 9438baf..3bc0649 100644 --- a/Examples-(vim).md +++ b/Examples-(vim).md @@ -51,7 +51,7 @@ array as the source. In the following example, we use the names of the open buffers as the source. ```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%'}) ```