summaryrefslogtreecommitdiffstats
path: root/README-VIM.md
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 /README-VIM.md
parent63cf9d04deab832a3a472b6e4de2db837932d957 (diff)
[vim] Update setqflist example
Without 'lnum', cfdo doesn't work Close https://github.com/junegunn/fzf.vim/issues/1435
Diffstat (limited to 'README-VIM.md')
-rw-r--r--README-VIM.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README-VIM.md b/README-VIM.md
index aa70d285..9844252a 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