Skip to content

Commit

Permalink
fix(markdown): keys when buf is invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed May 22, 2024
1 parent 9f6f6ba commit 0dc97cb
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 @@ -210,6 +210,9 @@ function M.format(message, text, opts)
end

function M.keys(buf)
if not vim.api.nvim_buf_is_valid(buf) then
return
end
if vim.b[buf].markdown_keys then
return
end
Expand Down

0 comments on commit 0dc97cb

Please sign in to comment.