From 19309b636faab0498b4f07f96c01a72855e135c2 Mon Sep 17 00:00:00 2001 From: Elvis Hernandez Date: Mon, 13 Jan 2025 12:59:30 -0500 Subject: [PATCH] use string.find instead of string.match to avoid special char weirdness --- lua/harpoon/buffer.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/harpoon/buffer.lua b/lua/harpoon/buffer.lua index b351f62..2c49920 100644 --- a/lua/harpoon/buffer.lua +++ b/lua/harpoon/buffer.lua @@ -106,7 +106,7 @@ function M.set_current_menu_item_highlight( contents ) for line_number, file in pairs(contents) do - if string.match(current_file, file) then + if string.find(current_file, file, 1, true) then -- highlight the harpoon menu line that corresponds to the current buffer vim.api.nvim_buf_add_highlight( bufnr,