diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2020-03-01 20:57:35 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2020-03-01 20:57:35 +0900 |
commit | 6db15e86937029b4a4565b2ae73a3c6bae5ef4ba (patch) | |
tree | eee1099b1304f3bd984ce19c40476e8c33ed3928 | |
parent | 4c9cab3f8ae7b55f7124d7c3cf7ac6b4cc3db210 (diff) |
[vim] Throw error when popup support is unavailable
https://github.com/junegunn/fzf.vim/issues/943
https://github.com/junegunn/fzf.vim/issues/959
-rw-r--r-- | plugin/fzf.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 17d1dce1..2948595f 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -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 |