Skip to content

Commit

Permalink
fix: potential endless loop in markdown key handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Nov 24, 2022
1 parent 6f8f897 commit 078cbd9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/noice/text/markdown.lua
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,9 @@ function M.keys(buf)
if from and col >= from and col <= to then
return handler(url)
end
if from then
from = to + 1
end
end
end
vim.api.nvim_feedkeys(lhs, "n", false)
Expand Down

0 comments on commit 078cbd9

Please sign in to comment.