Skip to content

Commit

Permalink
Fix helm-apt-cache-show action
Browse files Browse the repository at this point in the history
Delete buffer only when it is the same package described.
  • Loading branch information
thierryvolpiatto committed Oct 2, 2023
1 parent d421464 commit c36ac0b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion helm-apt.el
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,10 @@ If nil default `helm-apt-cache-show-1' will be used."

(defun helm-apt-cache-show (package)
"Show information on apt package PACKAGE."
(if (get-buffer-window "*helm apt show*" 'visible)
(if (and (get-buffer-window "*helm apt show*" 'visible)
(string= package (buffer-local-value
'helm-apt-show-current-package
(get-buffer "*helm apt show*"))))
(kill-buffer "*helm apt show*")
(if (and (functionp helm-apt-cache-show-function)
(not (eq helm-apt-cache-show-function
Expand Down

0 comments on commit c36ac0b

Please sign in to comment.