branch: externals/ivy-posframe
commit 441c1bfd18f1a0ca2efbe33417c844f6837ba2d0
Author: SeungKi Kim <[email protected]>
Commit: SeungKi Kim <[email protected]>
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)))))))