Skip to content

Commit

Permalink
fix: check has result == 1
Browse files Browse the repository at this point in the history
  • Loading branch information
rcarriga committed Sep 10, 2023
1 parent b8e0a01 commit 8904b8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/notify/init.lua
Expand Up @@ -183,7 +183,7 @@ end

setmetatable(notify, {
__call = function(_, m, l, o)
if vim.in_fast_event() or vim.fn.has("vim_starting") then
if vim.in_fast_event() or vim.fn.has("vim_starting") == 1 then
vim.schedule(function()
notify.notify(m, l, o)
end)
Expand Down

0 comments on commit 8904b8b

Please sign in to comment.