From 5422b74fd8fd63f4c3b66ad4d56ee1a704d100f5 Mon Sep 17 00:00:00 2001 From: jkub6 Date: Fri, 22 Jul 2022 11:14:18 -0600 Subject: [PATCH] add check for current setting --- lua/taglinks/tagutils.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/taglinks/tagutils.lua b/lua/taglinks/tagutils.lua index 95013da..9e6a7fc 100644 --- a/lua/taglinks/tagutils.lua +++ b/lua/taglinks/tagutils.lua @@ -41,7 +41,7 @@ local function command_find_all_tags(opts) } -- PCRE engine allows to remove hex color codes from #hastags - if opts.rg_pcre then + if opts.rg_pcre and (re == hashtag_re) then re = hashtag_re_pcre rg_args = {