Skip to content

Commit 2a77c8f

Browse files
committed
fix(core): Check if it's possible to attach to a buffer
Closes #22
1 parent 2a011d3 commit 2a77c8f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

plugin/helpview.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ vim.api.nvim_create_autocmd({ "BufAdd", "BufEnter" }, {
5656
elseif helpview.actions.__is_attached(buffer) == true then
5757
--- Already attached to this buffer!
5858
return;
59+
elseif helpview.can_attach(buffer) == false then
60+
--- Already attached to this buffer!
61+
return;
5962
end
6063

6164
---@type string, string

0 commit comments

Comments
 (0)