Skip to content

Commit

Permalink
Detach affected buffer only. (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
nsoufian authored Jan 25, 2024
1 parent 8515e48 commit 8619a63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/nvim-ts-autotag/internal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -594,8 +594,8 @@ M.attach = function(bufnr, lang)
end
end

M.detach = function()
local bufnr = vim.api.nvim_get_current_buf()
M.detach = function(bufnr)
local bufnr = tonumber(bufnr) or vim.api.nvim_get_current_buf()
buffer_tag[bufnr] = nil
end

Expand Down

0 comments on commit 8619a63

Please sign in to comment.