Pārlūkot izejas kodu

Fix xwwp-follow-link with Helm completion backend

Fix wrong link selection when using Helm.
Qiantan Hong 5 gadi atpakaļ
vecāks
revīzija
d084ef8494
1 mainītis faili ar 1 papildinājumiem un 2 dzēšanām
  1. 1 2
      xwwp-follow-link-helm.el

+ 1 - 2
xwwp-follow-link-helm.el

@@ -46,9 +46,8 @@
 (cl-defmethod xwwp-follow-link-candidates ((backend xwwp-follow-link-completion-backend-helm))
   (let* ((candidates (oref backend candidates))
          (selection (helm-get-selection))
-         (selected (when selection (cdr (elt (oref backend collection) selection))))
          (result (seq-map #'cdr candidates)))
-    (cons selected result)))
+    (cons selection result)))
 
 (cl-defmethod xwwp-follow-link-read ((backend xwwp-follow-link-completion-backend-helm) prompt collection action update-fn)
   (add-hook 'helm-after-initialize-hook (lambda ()