From 45d96c9cb1213204479593236dfabf911ff15443 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 22 Mar 2024 11:17:34 +0900 Subject: [PATCH] Do not omit argument to bufnr() for Vim 8 compatibility bufnr() requires an argument in Vim 8.0 Close #1521 --- autoload/fzf/vim.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/fzf/vim.vim b/autoload/fzf/vim.vim index 3fbe549..6fe31a1 100755 --- a/autoload/fzf/vim.vim +++ b/autoload/fzf/vim.vim @@ -1029,7 +1029,7 @@ function! s:tags_sink(lines) endif " Remember the current position - let buf = bufnr() + let buf = bufnr('') let view = winsaveview() let qfl = [] @@ -1251,7 +1251,7 @@ function! fzf#vim#changes(...) let cursor = 0 for bufnr in fzf#vim#_buflisted_sorted() let [changes, position_or_length] = getchangelist(bufnr) - let current = bufnr() == bufnr + let current = bufnr('') == bufnr if current let cursor = len(changes) - position_or_length endif