Skip to content

Commit

Permalink
Fix show completion when no candidates
Browse files Browse the repository at this point in the history
  • Loading branch information
thierryvolpiatto committed Nov 30, 2023
1 parent 384ac6d commit e9cc7a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions helm-elisp.el
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ display."
;; Called each time cursor move in helm-buffer.
(defun helm-show-completion ()
(with-helm-current-buffer
(overlay-put helm-show-completion-overlay
'display (substring-no-properties
(helm-get-selection)))))
(helm-aif (helm-get-selection)
(overlay-put helm-show-completion-overlay
'display (substring-no-properties it)))))

(defun helm-show-completion-init-overlay (beg end)
(setq helm-show-completion-overlay (make-overlay beg end))
Expand Down

0 comments on commit e9cc7a8

Please sign in to comment.