]> code.delx.au - gnu-emacs-elpa/commitdiff
ivy.el (ivy-occur-press): Pulse no longer
authorOleh Krehel <ohwoeowho@gmail.com>
Wed, 2 Mar 2016 11:23:30 +0000 (12:23 +0100)
committerOleh Krehel <ohwoeowho@gmail.com>
Wed, 2 Mar 2016 11:23:30 +0000 (12:23 +0100)
Repeated pulses within a short time span resulted in horrible window
flickering.

ivy.el

diff --git a/ivy.el b/ivy.el
index 8a72546a39e1242088af12a6f5c23578983a16ec..fa156f862bdd4f3d3c12550c28cc02adc4674d0d 100644 (file)
--- a/ivy.el
+++ b/ivy.el
@@ -2831,7 +2831,6 @@ EVENT gives the mouse position."
 (defun ivy-occur-press ()
   "Execute action for the current candidate."
   (interactive)
-  (require 'pulse)
   (when (save-excursion
           (beginning-of-line)
           (looking-at "\\(?:./\\|    \\)\\(.*\\)$"))
@@ -2858,8 +2857,7 @@ EVENT gives the mouse position."
                (line-beginning-position)
                (line-end-position)
                (selected-window))
-              (run-at-time 0.5 nil 'swiper--cleanup))
-          (pulse-momentary-highlight-one-line (point)))))))
+              (run-at-time 0.5 nil 'swiper--cleanup)))))))
 
 (defvar ivy-help-file (let ((default-directory
                              (if load-file-name