mirror of
https://github.com/junegunn/fzf.vim.git
synced 2025-12-06 04:34:26 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user