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

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

[elpa] externals/ivy-posframe 786dcc7 094/195: Fix "ivy-posframe copies


From: Feng Shu
Subject: [elpa] externals/ivy-posframe 786dcc7 094/195: Fix "ivy-posframe copies prompt text as kill" #41
Date: Sat, 3 Oct 2020 07:11:52 -0400 (EDT)

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

    Fix "ivy-posframe copies prompt text as kill" #41
---
 ivy-posframe.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ivy-posframe.el b/ivy-posframe.el
index 27bb838..37c1155 100644
--- a/ivy-posframe.el
+++ b/ivy-posframe.el
@@ -268,7 +268,9 @@ This variable is useful for `ivy-posframe-read-action' .")
         (remove-text-properties 0 (length prompt) '(read-only nil) prompt)
         (with-current-buffer ivy-posframe-buffer
           (goto-char (point-min))
-          (kill-line 1)
+          (delete-region
+           (point)
+           (save-excursion (move-end-of-line 1) (point)))
           (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]