emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 3b40e99 142/399: swiper.el (swiper-isearch-action): Fix fa


From: Oleh Krehel
Subject: [elpa] master 3b40e99 142/399: swiper.el (swiper-isearch-action): Fix fake cursor at eol
Date: Sat, 20 Jul 2019 14:57:11 -0400 (EDT)

branch: master
commit 3b40e99812d7a4c46a97fa63e71643dd65c88517
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    swiper.el (swiper-isearch-action): Fix fake cursor at eol
---
 swiper.el | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/swiper.el b/swiper.el
index a5d3014..307eb4d 100644
--- a/swiper.el
+++ b/swiper.el
@@ -1165,8 +1165,10 @@ See `ivy-format-function' for further information."
         (unless (eq ivy-exit 'done)
           (swiper--cleanup)
           (swiper--add-overlays (ivy--regex ivy-text))
-          (let ((ov (make-overlay (point) (1+ (point)))))
-            (overlay-put ov 'face 'ivy-cursor)
+          (let ((ov (make-overlay (point) (if (eolp) (point) (1+ (point))))))
+            (if (eolp)
+                (overlay-put ov 'after-string (propertize " " 'face 
'ivy-cursor))
+              (overlay-put ov 'face 'ivy-cursor))
             (push ov swiper--overlays))))
     (swiper--cleanup)))
 
@@ -1176,6 +1178,7 @@ See `ivy-format-function' for further information."
   (swiper--init)
   (setq swiper--isearch-last-point (line-beginning-position))
   (let ((ivy-fixed-height-minibuffer t)
+        (cursor-in-non-selected-windows nil)
         (swiper-min-highlight 1)
         res)
     (unwind-protect



reply via email to

[Prev in Thread] Current Thread [Next in Thread]