Exclude radio buttons when suggesting URI in eww

* lisp/net/eww.el (eww-links-at-point): Exclude radio links.
(bug#56366).
This commit is contained in:
Visuwesh 2022-07-03 15:29:44 +02:00 committed by Lars Ingebrigtsen
parent 906b97edb9
commit f133336a1a

View file

@ -932,9 +932,9 @@ The renaming scheme is performed in accordance with
(defun eww-links-at-point ()
"Return list of URIs, if any, linked at point."
(remq nil
(list (get-text-property (point) 'shr-url)
(get-text-property (point) 'image-url))))
(seq-filter #'stringp
(list (get-text-property (point) 'shr-url)
(get-text-property (point) 'image-url))))
(defun eww-view-source ()
"View the HTML source code of the current page."