branch: externals/ivy-posframe
commit 2f2c7f671cce4f61e9fc0742d416e45d5af4d749
Merge: 92e09f2 7dc84ee
Author: tumashu <[email protected]>
Commit: GitHub <[email protected]>

    Merge pull request #48 from tttuuu888/work-list
    
    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 7ede472..cc22db0 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)))
+          (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)))))))
 

Reply via email to