aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sx-interaction.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/sx-interaction.el b/sx-interaction.el
index 75b51ab..3d60cbe 100644
--- a/sx-interaction.el
+++ b/sx-interaction.el
@@ -138,7 +138,7 @@ Element can be a question, answer, or comment."
(list (read-string (concat "Link (" def "): ") nil nil def))))
;; For now, we have no chance of handling chat links, let's just
;; send them to the browser.
- (if (string-match (rx string-start "http" (opt "s") "://chat."))
+ (if (string-match (rx string-start "http" (opt "s") "://chat.") link)
(sx-visit-externally link)
(let ((data (sx--link-to-data link)))
(sx-assoc-let data