Fix vi editor compilation

This commit is contained in:
Jeremy Soller 2023-03-02 11:31:07 -07:00
parent 9158cb83d0
commit 7078c3bb98
No known key found for this signature in database
GPG key ID: DCFCA852D3906975

View file

@ -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);
},
);
}
}
}