Skip to content

Commit

Permalink
Fix Clipboard issue for macOS and Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
askdkc committed Dec 11, 2023
1 parent 624e7b4 commit 5ffdfd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion org-web-tools.el
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ HTML."

(defun org-web-tools--get-first-url ()
"Return URL in clipboard, or first URL in the `kill-ring', or nil if none."
(cl-loop for item in (append (list (gui-get-selection 'CLIPBOARD))
(cl-loop for item in (cons (current-kill 0)
kill-ring)
when (and item (string-match (rx bol "http" (optional "s") "://") item))
return item))
Expand Down

0 comments on commit 5ffdfd9

Please sign in to comment.