Skip to content

Commit e4a2022

Browse files
author
Rónán Carrigan
committed
fix(wrapped-compact): default max width
See #225
1 parent 9485943 commit e4a2022

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lua/notify/render/wrapped-compact.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ return function(bufnr, notif, highlights, config)
4646

4747
-- wrap the text & add spacing
4848
local max_width = config.max_width()
49+
if max_width == nil then
50+
max_width = 80
51+
end
4952
notif.message = custom_wrap(notif.message, max_width)
5053

5154
local default_titles = { "Error", "Warning", "Notify" }

0 commit comments

Comments
 (0)