From 6db15e86937029b4a4565b2ae73a3c6bae5ef4ba Mon Sep 17 00:00:00 2001
From: Junegunn Choi <junegunn.c@gmail.com>
Date: Sun, 1 Mar 2020 20:57:35 +0900
Subject: [PATCH] [vim] Throw error when popup support is unavailable

https://github.com/junegunn/fzf.vim/issues/943
https://github.com/junegunn/fzf.vim/issues/959
---
 plugin/fzf.vim | 3 +++
 1 file changed, 3 insertions(+)

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
-- 
GitLab