This commit is contained in:
Daniel Hahler 2016-10-08 15:03:45 +00:00 committed by GitHub
commit e2ba9b18d1

View File

@ -726,10 +726,17 @@ function! s:prepare(...)
call s:job_abort() call s:job_abort()
if s:switch_in() if s:switch_in()
let new_window = winnr('$') > 1
normal q normal q
else
let new_window = 1
endif endif
if new_window
call s:new_window() call s:new_window()
else
enew
endif
nnoremap <silent> <buffer> q :if b:plug_preview==1<bar>pc<bar>endif<bar>bd<cr> nnoremap <silent> <buffer> q :if b:plug_preview==1<bar>pc<bar>endif<bar>bd<cr>
if a:0 == 0 if a:0 == 0
call s:finish_bindings() call s:finish_bindings()