Skip to content
Myr

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

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Otherwise, the jump list will contain a (hidden) entry for the FZF buffer if `window: enew` is used.

authored by Jonathan Müller · committed by GitHub · parent d57c6d0 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:plugin/fzf.vim+1 added-1 removed
781 unmodified lines
782 \ 'columns': &columns, 'command': a:command }783 function! fzf.switch_back(inplace)784 if a:inplace && bufnr('') == self.buf785 if bufexists(self.pbuf)786 execute 'keepalt b' self.pbuf786 execute 'keepalt keepjumps b' self.pbuf787 endif788 " No other listed buffer789 if bufnr('') == self.buf790 enew
201 unmodified lines