branch: elpa/isl
commit defb1511f6a55a84fe3d25daa4401dd704bf2bcd
Author: Thierry Volpiatto <[email protected]>
Commit: Thierry Volpiatto <[email protected]>

    No need to recenter twice
---
 isearch-light.el | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/isearch-light.el b/isearch-light.el
index 52d6f0c733f..56274bef1cb 100644
--- a/isearch-light.el
+++ b/isearch-light.el
@@ -345,9 +345,6 @@ It put overlay on current position, move to next overlay 
using
     (when isl-save-pos-to-mark-ring
       (set-marker (mark-marker) isl-initial-pos)
       (push-mark isl-initial-pos 'nomsg))
-    ;; Recenter before flashing avoid loosing visually position.
-    (and (not (string= isl-pattern ""))
-         (recenter))
     (let ((ov (make-overlay (point-at-bol) (1+ (point-at-eol)))))
       (overlay-put ov 'face 'isl-line)
       (sit-for 0.2)

Reply via email to