summaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorJonathan Müller <git@foonathan.net>2021-02-25 13:58:13 +0100
committerGitHub <noreply@github.com>2021-02-25 21:58:13 +0900
commit1137404190be7cf51ba647b76f4be2a11cc7d85f (patch)
tree3af4cb8f1251c9be8c76f782419d5ba46f1da190 /plugin
parentd57c6d0284c2fc7040d101bc70f39978ff9e58f8 (diff)
[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.
Diffstat (limited to 'plugin')
-rw-r--r--plugin/fzf.vim2
1 files changed, 1 insertions, 1 deletions
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