We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ffd82a commit 2263b7dCopy full SHA for 2263b7d
lua/render-markdown/ui.lua
@@ -53,13 +53,13 @@ M.clear_valid = function(buf)
53
if not vim.api.nvim_buf_is_valid(buf) then
54
return false
55
end
56
- if util.buf_to_win(buf) < 0 then
57
- return false
58
- end
59
if not vim.tbl_contains(state.config.file_types, vim.bo[buf].filetype) then
60
61
62
vim.api.nvim_buf_clear_namespace(buf, M.namespace, 0, -1)
+ if util.buf_to_win(buf) < 0 then
+ return false
+ end
63
util.set_conceal(buf, state.config.conceal.default)
64
return true
65
0 commit comments