mirror of
https://github.com/junegunn/fzf.git
synced 2025-07-31 04:02:01 -07:00
[vim] Throw error when popup support is unavailable
https://github.com/junegunn/fzf.vim/issues/943 https://github.com/junegunn/fzf.vim/issues/959
This commit is contained in:
@@ -662,6 +662,9 @@ function! s:split(dict)
|
||||
try
|
||||
if s:present(a:dict, 'window')
|
||||
if type(a:dict.window) == type({})
|
||||
if !has('nvim') && !has('patch-8.2.191')
|
||||
throw 'Vim 8.2.191 or later is required for pop-up window'
|
||||
end
|
||||
call s:popup(a:dict.window)
|
||||
else
|
||||
execute 'keepalt' a:dict.window
|
||||
|
Reference in New Issue
Block a user