From 1116e481bef4f63abe0e506ce20469e244c505e6 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 10 Mar 2023 22:20:57 +0900 Subject: [PATCH] [vim] Update setqflist example Without 'lnum', cfdo doesn't work Close https://github.com/junegunn/fzf.vim/issues/1435 --- README-VIM.md | 2 +- doc/fzf.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README-VIM.md b/README-VIM.md index aa70d28..9844252 100644 --- a/README-VIM.md +++ b/README-VIM.md @@ -118,7 +118,7 @@ let g:fzf_action = { " An action can be a reference to a function that processes selected lines function! s:build_quickfix_list(lines) - call setqflist(map(copy(a:lines), '{ "filename": v:val }')) + call setqflist(map(copy(a:lines), '{ "filename": v:val, "lnum": 1 }')) copen cc endfunction diff --git a/doc/fzf.txt b/doc/fzf.txt index cf05216..35d2b8a 100644 --- a/doc/fzf.txt +++ b/doc/fzf.txt @@ -143,7 +143,7 @@ Examples~ " An action can be a reference to a function that processes selected lines function! s:build_quickfix_list(lines) - call setqflist(map(copy(a:lines), '{ "filename": v:val }')) + call setqflist(map(copy(a:lines), '{ "filename": v:val, "lnum": 1 }')) copen cc endfunction