Skip to content
Snippets Groups Projects
Commit 847c5125 authored by Daniel Hahler's avatar Daniel Hahler Committed by Junegunn Choi
Browse files

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

With a `bufhidden=wipe` buffer (e.g. vim-startify) the buffer would not
exist anymore, resulting in an error.
parent 97330ee8
No related branches found
No related tags found
No related merge requests found
......@@ -464,7 +464,9 @@ function! s:execute_term(dict, command, temps) abort
\ 'columns': &columns, 'command': a:command }
function! fzf.switch_back(inplace)
if a:inplace && bufnr('') == self.buf
execute 'keepalt b' self.pbuf
if bufexists(self.pbuf)
execute 'keepalt b' self.pbuf
endif
" No other listed buffer
if bufnr('') == self.buf
enew
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment