Skip to content

Commit

Permalink
ivy--wnd-cands-to-str: remove invisible text props as well
Browse files Browse the repository at this point in the history
  • Loading branch information
kiennq committed Aug 31, 2024
1 parent 4305264 commit c419866
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions ivy.el
Original file line number Diff line number Diff line change
Expand Up @@ -4280,10 +4280,7 @@ CANDS is a list of candidates that :display-transformer can turn into strings."
(ivy-set-index (max (1- ivy--length) 0)))
(if (null cands)
(setf (ivy-state-current ivy-last) "")
(let ((cur (nth ivy--index cands)))
(setf (ivy-state-current ivy-last) (if (stringp cur)
(copy-sequence cur)
cur)))
(setf (ivy-state-current ivy-last) (nth ivy--index cands))
(let* ((bnd (ivy--minibuffer-index-bounds
ivy--index ivy--length ivy-height))
(wnd-cands (cl-subseq cands (car bnd) (cadr bnd)))
Expand Down Expand Up @@ -4326,7 +4323,7 @@ CANDS is a list of candidates that :display-transformer can turn into strings."
(mapcar fmt (if affix (funcall affix wnd-cands)
wnd-cands))
(error wnd-cands)))))
(concat "\n" (ivy--remove-props str 'read-only))))
(concat "\n" (ivy--remove-props str 'read-only 'invisible))))

(defvar recentf-list)
(defvar bookmark-alist)
Expand Down

0 comments on commit c419866

Please sign in to comment.