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

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

[elpa] externals/ivy-posframe 057d628 182/195: Fix for prompt line dupli


From: Feng Shu
Subject: [elpa] externals/ivy-posframe 057d628 182/195: Fix for prompt line duplicated issue. #71
Date: Sat, 3 Oct 2020 07:12:09 -0400 (EDT)

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

    Fix for prompt line duplicated issue. #71
---
 ivy-posframe.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ivy-posframe.el b/ivy-posframe.el
index 91dfd1b..aea9c2f 100644
--- a/ivy-posframe.el
+++ b/ivy-posframe.el
@@ -507,7 +507,9 @@ selection, non-nil otherwise."
         (remove-text-properties 0 (length prompt) '(read-only nil) prompt)
         (with-current-buffer ivy-posframe-buffer
           (goto-char (point-min))
-          (delete-region (point) (line-beginning-position 2))
+          (if (string-match-p "\n" prompt)
+              (delete-region (point) (line-beginning-position 3))
+            (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]