mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-12-23 03:19:01 +00: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:
parent
4c9cab3f8a
commit
6db15e8693
@ -662,6 +662,9 @@ function! s:split(dict)
|
|||||||
try
|
try
|
||||||
if s:present(a:dict, 'window')
|
if s:present(a:dict, 'window')
|
||||||
if type(a:dict.window) == type({})
|
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)
|
call s:popup(a:dict.window)
|
||||||
else
|
else
|
||||||
execute 'keepalt' a:dict.window
|
execute 'keepalt' a:dict.window
|
||||||
|
Loading…
Reference in New Issue
Block a user