File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
lua/notify/service/buffer Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -94,8 +94,10 @@ function NotificationBuf:render()
94
94
local notif = self ._notif
95
95
local buf = self ._buffer
96
96
97
+ local render_namespace = require (" notify.render.base" ).namespace ()
97
98
api .nvim_buf_set_option (buf , " filetype" , " notify" )
98
99
api .nvim_buf_set_option (buf , " modifiable" , true )
100
+ api .nvim_buf_clear_namespace (buf , render_namespace , 0 , - 1 )
99
101
100
102
notif .render (buf , notif , self .highlights )
101
103
@@ -106,7 +108,6 @@ function NotificationBuf:render()
106
108
for _ , line in pairs (lines ) do
107
109
width = math.max (width , vim .str_utfindex (line ))
108
110
end
109
- local render_namespace = require (" notify.render.base" ).namespace ()
110
111
local success , extmarks = pcall (
111
112
api .nvim_buf_get_extmarks ,
112
113
buf ,
You can’t perform that action at this time.
0 commit comments