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
|
endif
|
||||||
|
|
||||||
" Remember the current position
|
" Remember the current position
|
||||||
let buf = bufnr()
|
let buf = bufnr('')
|
||||||
let view = winsaveview()
|
let view = winsaveview()
|
||||||
|
|
||||||
let qfl = []
|
let qfl = []
|
||||||
@@ -1251,7 +1251,7 @@ function! fzf#vim#changes(...)
|
|||||||
let cursor = 0
|
let cursor = 0
|
||||||
for bufnr in fzf#vim#_buflisted_sorted()
|
for bufnr in fzf#vim#_buflisted_sorted()
|
||||||
let [changes, position_or_length] = getchangelist(bufnr)
|
let [changes, position_or_length] = getchangelist(bufnr)
|
||||||
let current = bufnr() == bufnr
|
let current = bufnr('') == bufnr
|
||||||
if current
|
if current
|
||||||
let cursor = len(changes) - position_or_length
|
let cursor = len(changes) - position_or_length
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user