From 36b78d112bddd69a05e24679241962e29e494d9e Mon Sep 17 00:00:00 2001 From: Riley Bruins Date: Sat, 28 Sep 2024 09:45:49 -0700 Subject: [PATCH] fix(markdown): don't set link metadata twice Otherwise the same link will be opened twice when the cursor is on the link text itself. --- queries/markdown_inline/highlights.scm | 3 --- 1 file changed, 3 deletions(-) diff --git a/queries/markdown_inline/highlights.scm b/queries/markdown_inline/highlights.scm index 2070e9b3b..5fb9e911d 100644 --- a/queries/markdown_inline/highlights.scm +++ b/queries/markdown_inline/highlights.scm @@ -91,9 +91,6 @@ (email_autolink) ] @markup.link.url @nospell -((link_destination) @_url - (#set! @_url url @_url)) - ((uri_autolink) @_url (#offset! @_url 0 1 0 -1) (#set! @_url url @_url))