This commit is contained in:
Max Brunsfeld
2021-07-20 15:30:50 -07:00
parent d0fdc7b5e8
commit 07e97e6cad
3 changed files with 15 additions and 1 deletions
+4
View File
@@ -2190,6 +2190,10 @@ impl Editor {
font_cache.em_width(font_id, settings.buffer_font_size)
}
pub fn set_width(&self, width: f32) {
self.display_map.set_wrap_width(Some(width));
}
// TODO: Can we make this not return a result?
pub fn max_line_number_width(
&self,