Skip to content

Commit

Permalink
feat: avoid tabline
Browse files Browse the repository at this point in the history
See #4
  • Loading branch information
rcarriga committed Aug 6, 2021
1 parent d8be1ff commit 2ee19cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/notify/render.lua
Expand Up @@ -66,7 +66,7 @@ function NotificationRenderer:push_pending()
local next_notif = self.pending:peek()
local next_height = #next_notif.message + 3 -- Title and borders

local next_row = 0
local next_row = vim.opt.tabline:get() == "" and 0 or 1
for _, interval in pairs(self:window_intervals()) do
local next_bottom = next_row + next_height
if interval[1] <= next_bottom then
Expand Down

0 comments on commit 2ee19cd

Please sign in to comment.