From 7078c3bb98175f33c45187911635e622d90020b2 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Thu, 2 Mar 2023 11:31:07 -0700 Subject: [PATCH] Fix vi editor compilation --- src/edit/vi.rs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/edit/vi.rs b/src/edit/vi.rs index 4785a0c..22bbc78 100644 --- a/src/edit/vi.rs +++ b/src/edit/vi.rs @@ -421,9 +421,14 @@ impl<'a> Edit<'a> for ViEditor<'a> { None => color, }; - cache.with_pixels(cache_key, glyph_color, |x, y, color| { - f(x_int + x, line_y as i32 + y_int + y, 1, 1, color); - }); + cache.with_pixels( + self.buffer().font_system(), + cache_key, + glyph_color, + |x, y, color| { + f(x_int + x, line_y as i32 + y_int + y, 1, 1, color); + }, + ); } } }