Skip to content

Commit 078cbd9

Browse files
committed
fix: potential endless loop in markdown key handlers
1 parent 6f8f897 commit 078cbd9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lua/noice/text/markdown.lua

+3
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,9 @@ function M.keys(buf)
214214
if from and col >= from and col <= to then
215215
return handler(url)
216216
end
217+
if from then
218+
from = to + 1
219+
end
217220
end
218221
end
219222
vim.api.nvim_feedkeys(lhs, "n", false)

0 commit comments

Comments
 (0)