Ensure that soft wrapped lines don't cause horizontal scrolling

This commit is contained in:
Nathan Sobo
2021-07-21 12:27:01 -06:00
parent 699e558db9
commit f169f8e358
2 changed files with 14 additions and 5 deletions
+1 -1
View File
@@ -2198,7 +2198,7 @@ impl Editor {
font_cache.em_width(font_id, settings.buffer_font_size)
}
pub fn set_width(&self, width: f32) {
pub fn set_wrap_width(&self, width: f32) {
self.display_map.set_wrap_width(Some(width));
}