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

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

[elpa] externals/ivy-posframe 85f2f7a 184/195: Fix for prompt line dupli


From: Feng Shu
Subject: [elpa] externals/ivy-posframe 85f2f7a 184/195: Fix for prompt line duplicated issue in another way. #71
Date: Sat, 3 Oct 2020 07:12:10 -0400 (EDT)

branch: externals/ivy-posframe
commit 85f2f7a2fde6d43fe7db1d5c0cbe6edcae33b581
Author: SeungKi Kim <tttuuu888@gmail.com>
Commit: SeungKi Kim <tttuuu888@gmail.com>

    Fix for prompt line duplicated issue in another way. #71
---
 ivy-posframe.el | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/ivy-posframe.el b/ivy-posframe.el
index aea9c2f..c31526b 100644
--- a/ivy-posframe.el
+++ b/ivy-posframe.el
@@ -270,8 +270,7 @@ This variable is useful for `ivy-posframe-read-action' .")
              :internal-border-width ivy-posframe-border-width
              :internal-border-color (face-attribute 'ivy-posframe-border 
:background nil t)
              :override-parameters ivy-posframe-parameters
-             (funcall ivy-posframe-size-function)))
-    (ivy-posframe--add-prompt 'ignore)))
+             (funcall ivy-posframe-size-function)))))
 
 (defun ivy-posframe-get-size ()
   "The default functon used by `ivy-posframe-size-function'."
@@ -507,9 +506,7 @@ selection, non-nil otherwise."
         (remove-text-properties 0 (length prompt) '(read-only nil) prompt)
         (with-current-buffer ivy-posframe-buffer
           (goto-char (point-min))
-          (if (string-match-p "\n" prompt)
-              (delete-region (point) (line-beginning-position 3))
-            (delete-region (point) (line-beginning-position 2)))
+          (delete-region (point) (line-beginning-position 2))
           (insert prompt "  \n")
           (add-text-properties point (1+ point) '(face 
ivy-posframe-cursor)))))))
 



reply via email to

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