branch: externals/ivy-posframe
commit b1ecab744796ccbb192df094620585aa54621357
Merge: bda3116 0c2bf2c
Author: tumashu <tuma...@163.com>
Commit: GitHub <nore...@github.com>

    Merge pull request #42 from tttuuu888/work
    
    Fix "ivy-posframe copies prompt text as kill" #41
---
 ivy-posframe.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ivy-posframe.el b/ivy-posframe.el
index 27bb838..7628e24 100644
--- a/ivy-posframe.el
+++ b/ivy-posframe.el
@@ -268,7 +268,7 @@ 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 (line-move 1 'noerror) 
(point)))
           (insert prompt "  \n")
           (add-text-properties point (1+ point) '(face 
ivy-posframe-cursor)))))))
 

Reply via email to