Skip to content

Commit

Permalink
fix(events): fix startup error when enabled = false
Browse files Browse the repository at this point in the history
  • Loading branch information
sphamba committed Feb 3, 2025
1 parent 8555bae commit 8d41110
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/smear_cursor/events.lua
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ M.listen = function()
end

M.unlisten = function()
vim.api.nvim_clear_autocmds({ group = "SmearCursor" })
pcall(vim.api.nvim_clear_autocmds, { group = "SmearCursor" })
vim.on_key(nil, cursor_namespace)
end

Expand Down

0 comments on commit 8d41110

Please sign in to comment.