Shared utility functions for line operations. Extracted to eliminate code duplication between Deletion and Insertion modules.
Summary
Functions
Fills new lines in the buffer with empty cells.
Functions
@spec fill_new_lines(map(), non_neg_integer(), non_neg_integer(), map() | nil) :: map()
Fills new lines in the buffer with empty cells.
Parameters
- buffer: The buffer to modify
- start_y: Starting line index
- count: Number of lines to fill
- style: Style to apply to new cells
Returns
Updated buffer with filled lines