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