Used bump allocation for TextBuffer::all_lines

This commit is contained in:
Anton-4 2021-01-13 17:02:41 +01:00
parent 76e2edff97
commit 1f90c6f47b
2 changed files with 5 additions and 3 deletions

View file

@ -257,7 +257,7 @@ fn run_event_loop(file_path_opt: Option<&Path>) -> Result<(), Box<dyn Error>> {
//TODO don't pass invisible lines
queue_editor_text(
&size,
&ed_model.text_buf.all_lines(),
&ed_model.text_buf.all_lines(&arena),
ed_model.caret_pos,
CODE_TXT_XY.into(),
&mut glyph_brush,