File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -395,8 +395,8 @@ function Component:initial_value()
395
395
end
396
396
397
397
function Component :modify_buffer_content (modify_fn )
398
- self :set_buffer_option (" modifiable" , true )
399
398
vim .schedule (function ()
399
+ self :set_buffer_option (" modifiable" , true )
400
400
modify_fn ()
401
401
vim .schedule (function ()
402
402
self :set_buffer_option (" modifiable" , false )
Original file line number Diff line number Diff line change @@ -145,12 +145,13 @@ function Paragraph:on_update()
145
145
local lines = self :get_lines ()
146
146
local size = self :get_size ()
147
147
local props = self :get_props ()
148
+ local border_delta_size = self :get_border_delta_size ()
148
149
149
150
if not self :is_hidden () then
150
151
self ._private .last_width = size .width
151
152
end
152
153
153
- local width = self ._private .last_width or size .width
154
+ local width = ( self ._private .last_width or size . width ) - border_delta_size .width
154
155
155
156
fn .ieach (lines , function (line , index )
156
157
local new_line = Line ()
You can’t perform that action at this time.
0 commit comments