branch: externals/ivy-posframe commit 7dc84ee4ee4ab8b28235198c6bef105756dade2b Author: SeungKi Kim <tttuuu...@gmail.com> Commit: SeungKi Kim <tttuuu...@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)))))))