@@ -2502,7 +2502,7 @@ pub fn view_mode(cx: &mut Context) {
2502 let pos = coords_at_pos(doc.text().slice(..), pos);
2502 let pos = coords_at_pos(doc.text().slice(..), pos);
2504 const OFFSET: usize = 7; // gutters
2504 const OFFSET: usize = 7; // gutters
2505− view.first_col = pos.col.saturating_sub((view.area.width as usize - OFFSET) / 2);
2505+ view.first_col = pos.col.saturating_sub(((view.area.width as usize).saturating_sub(OFFSET)) / 2);
2507 'h' => (),
2507 'h' => (),
2508 'j' => scroll(cx, 1, Direction::Forward),
2508 'j' => scroll(cx, 1, Direction::Forward),