branch: master
commit 013fe040df63d3e38c3c1d5bf096f2f727c6312c
Author: Oleh Krehel <ohwoeo...@gmail.com>
Commit: Oleh Krehel <ohwoeo...@gmail.com>

    swiper.el (swiper--ivy): Check for stand-alone ivy
    
    Re #54
---
 swiper.el |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/swiper.el b/swiper.el
index c58f20f..290260e 100644
--- a/swiper.el
+++ b/swiper.el
@@ -172,6 +172,9 @@ When non-nil, INITIAL-INPUT is the initial search pattern."
   "`isearch' with an overview using `ivy'.
 When non-nil, INITIAL-INPUT is the initial search pattern."
   (interactive)
+  (unless (eq (length (help-function-arglist 'ivy-read)) 4)
+    (warn "You seem to be using the outdated stand-alone \"ivy\" package.
+Please remove it and update the \"swiper\" package."))
   (swiper--init)
   (let ((candidates (swiper--candidates))
         (preselect (format

Reply via email to