[vim] Add keepjump to switch_back() function (#2363)

Otherwise, the jump list will contain a (hidden) entry for the FZF buffer if `window: enew` is used.
This commit is contained in:
Jonathan Müller 2021-02-25 13:58:13 +01:00 committed by GitHub
parent d57c6d0284
commit 1137404190
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -783,7 +783,7 @@ function! s:execute_term(dict, command, temps) abort
function! fzf.switch_back(inplace)
if a:inplace && bufnr('') == self.buf
if bufexists(self.pbuf)
execute 'keepalt b' self.pbuf
execute 'keepalt keepjumps b' self.pbuf
endif
" No other listed buffer
if bufnr('') == self.buf