diff options
| author | SeungKi Kim <tttuuu888@gmail.com> | 2019-09-26 23:49:49 +0900 |
|---|---|---|
| committer | SeungKi Kim <tttuuu888@gmail.com> | 2019-09-26 23:49:49 +0900 |
| commit | 85f2f7a2fde6d43fe7db1d5c0cbe6edcae33b581 (patch) | |
| tree | 4d9cbda61cf205f1d79959aefd7f6de9b14299a5 | |
| parent | fc0a6a7a80d4396ea44d7ee08879f0f4b46d1b67 (diff) | |
Fix for prompt line duplicated issue in another way. #71
| -rw-r--r-- | ivy-posframe.el | 7 |
1 files 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))))))) |
