mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-13 17:40:25 +00:00
use string.find instead of string.match to avoid special char weirdness
This commit is contained in:
parent
27fce89fe8
commit
19309b636f
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user