From 1137404190be7cf51ba647b76f4be2a11cc7d85f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20M=C3=BCller?= Date: Thu, 25 Feb 2021 13:58:13 +0100 Subject: [PATCH] [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. --- plugin/fzf.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 12cd1760..95a6d77a 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -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