Skip to content
Myr

s:execute_term: switch_back: check that self.pbuf exists (#776)

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

With a `bufhidden=wipe` buffer (e.g. vim-startify) the buffer would not exist anymore, resulting in an error.

authored by Daniel Hahler · committed by Junegunn Choi · parent 97330ee · Browse files · 1 file+3 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+3 added−1 removed

  • other:+3 added−1 removed

1 file+3 added−1 removed

modified:plugin/fzf.vim+3 added-1 removed
462 unmodified lines
463 \ 'winopts': winopts, 'winrest': winrest, 'lines': &lines,464 \ 'columns': &columns, 'command': a:command }465 function! fzf.switch_back(inplace)466 if a:inplace && bufnr('') == self.buf467 if bufexists(self.pbuf)467 execute 'keepalt b' self.pbuf468 execute 'keepalt b' self.pbuf469 endif470 " No other listed buffer471 if bufnr('') == self.buf472 enew473 endif
133 unmodified lines