summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2023-03-10 22:20:57 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2023-03-10 22:22:22 +0900
commit1116e481bef4f63abe0e506ce20469e244c505e6 (patch)
tree1a541c8a53feb46f631b30a0413da9e5839be038 /doc
parent63cf9d04deab832a3a472b6e4de2db837932d957 (diff)
[vim] Update setqflist example
Without 'lnum', cfdo doesn't work Close https://github.com/junegunn/fzf.vim/issues/1435
Diffstat (limited to 'doc')
-rw-r--r--doc/fzf.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/fzf.txt b/doc/fzf.txt
index cf05216f..35d2b8ae 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