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

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

[elpa] externals/ivy-posframe 441c1bf 150/195: Fix First line disappears


From: Feng Shu
Subject: [elpa] externals/ivy-posframe 441c1bf 150/195: Fix First line disappears with the specific condition. #47
Date: Sat, 3 Oct 2020 07:12:03 -0400 (EDT)

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

    Fix First line disappears with the specific condition. #47
---
 ivy-posframe.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ivy-posframe.el b/ivy-posframe.el
index cea622c..115bad5 100644
--- a/ivy-posframe.el
+++ b/ivy-posframe.el
@@ -481,7 +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))
-          (delete-region (point) (save-excursion (line-move 1 'noerror) 
(point)))
+          (kill-line 1)
+          (setq kill-ring (cdr kill-ring))
           (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]