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

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

[elpa] externals/ivy-posframe 7dc84ee 152/195: Fix2 First line disappear


From: Feng Shu
Subject: [elpa] externals/ivy-posframe 7dc84ee 152/195: Fix2 First line disappears with the specific condition. #47
Date: Sat, 3 Oct 2020 07:12:04 -0400 (EDT)

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

    Fix2 First line disappears with the specific condition. #47
    
    Better solution since this does not modify kill-ring.
---
 ivy-posframe.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ivy-posframe.el b/ivy-posframe.el
index 115bad5..3df0168 100644
--- a/ivy-posframe.el
+++ b/ivy-posframe.el
@@ -481,8 +481,8 @@ selection, non-nil otherwise."
         (remove-text-properties 0 (length prompt) '(read-only nil) prompt)
         (with-current-buffer ivy-posframe-buffer
           (goto-char (point-min))
-          (kill-line 1)
-          (setq kill-ring (cdr kill-ring))
+          (delete-region (point) (save-excursion (move-end-of-line 1) (point)))
+          (delete-char 1)
           (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]