Skip to content

Commit

Permalink
fix(wrapped-compact): default max width
Browse files Browse the repository at this point in the history
See #225
  • Loading branch information
Rónán Carrigan committed Sep 28, 2023
1 parent 9485943 commit e4a2022
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/notify/render/wrapped-compact.lua
Expand Up @@ -46,6 +46,9 @@ return function(bufnr, notif, highlights, config)

-- wrap the text & add spacing
local max_width = config.max_width()
if max_width == nil then
max_width = 80
end
notif.message = custom_wrap(notif.message, max_width)

local default_titles = { "Error", "Warning", "Notify" }
Expand Down

0 comments on commit e4a2022

Please sign in to comment.