branch: externals/ivy-posframe
commit aadadf1359fdd3f2cc83b4980503a50c2c0c0319
Merge: fc0a6a7 85f2f7a
Author: tumashu <[email protected]>
Commit: GitHub <[email protected]>
Merge pull request #73 from tttuuu888/work-issue-71-2
Fix for prompt line duplicated issue in another way. #71
---
ivy-posframe.el | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/ivy-posframe.el b/ivy-posframe.el
index aea9c2f..c31526b 100644
--- a/ivy-posframe.el
+++ b/ivy-posframe.el
@@ -270,8 +270,7 @@ This variable is useful for `ivy-posframe-read-action' .")
:internal-border-width ivy-posframe-border-width
:internal-border-color (face-attribute 'ivy-posframe-border
:background nil t)
:override-parameters ivy-posframe-parameters
- (funcall ivy-posframe-size-function)))
- (ivy-posframe--add-prompt 'ignore)))
+ (funcall ivy-posframe-size-function)))))
(defun ivy-posframe-get-size ()
"The default functon used by `ivy-posframe-size-function'."
@@ -507,9 +506,7 @@ selection, non-nil otherwise."
(remove-text-properties 0 (length prompt) '(read-only nil) prompt)
(with-current-buffer ivy-posframe-buffer
(goto-char (point-min))
- (if (string-match-p "\n" prompt)
- (delete-region (point) (line-beginning-position 3))
- (delete-region (point) (line-beginning-position 2)))
+ (delete-region (point) (line-beginning-position 2))
(insert prompt " \n")
(add-text-properties point (1+ point) '(face
ivy-posframe-cursor)))))))