summaryrefslogtreecommitdiffstats
path: root/plugin/fzf.vim
diff options
context:
space:
mode:
authorDaniel Hahler <github@thequod.de>2016-12-18 18:51:19 +0100
committerJunegunn Choi <junegunn.c@gmail.com>2016-12-19 02:51:19 +0900
commit847c512539f9909ae69a5067c1a64cb9bb485ea3 (patch)
treea6ee909e462e0334481c61f7d1eaffe36363a5b5 /plugin/fzf.vim
parent97330ee8fc2c07c04ad3fe4746140d476347ee5c (diff)
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.
Diffstat (limited to 'plugin/fzf.vim')
-rw-r--r--plugin/fzf.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim
index 0cce53ab..2574a0fc 100644
--- a/plugin/fzf.vim
+++ b/plugin/fzf.vim
@@ -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