Do not omit argument to bufnr() for Vim 8 compatibility

bufnr() requires an argument in Vim 8.0

Close #1521
This commit is contained in:
Junegunn Choi
2024-03-22 11:17:34 +09:00
parent e69f2dcdad
commit 45d96c9cb1

View File

@@ -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