Skip to content

Commit

Permalink
fix(render): set nowrap on windows
Browse files Browse the repository at this point in the history
Avoids odd rendering when opening/collapsing
See #1
  • Loading branch information
rcarriga committed Aug 4, 2021
1 parent ca23acb commit 285ff11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/notify/render.lua
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,8 @@ function NotificationRenderer:add_window(notif)
}

local win = vim.api.nvim_open_win(buf, false, win_opts)
vim.fn.setwinvar(win, "&winhl", "Normal:Normal,FloatBorder:Notify" .. notif.level)
vim.wo[win].winhl = "Normal:Normal,FloatBorder:Notify" .. notif.level
vim.wo[win].wrap = false

self.win_order[#self.win_order + 1] = win
self.win_stages[win] = WinStage.OPENING
Expand Down

0 comments on commit 285ff11

Please sign in to comment.