@@ -5,6 +5,7 @@ use std::{borrow::Cow, path::PathBuf};
55use crate::theme::Theme;
66use helix_core::{
77 graphemes::{grapheme_width, RopeGraphemes},
8+ indent::TAB_WIDTH,
89 History, Position, RopeSlice, State,
910};
1011use tui::layout::Rect;
@@ -78,8 +79,7 @@ impl View {
7879
7980 for grapheme in RopeGraphemes::new(&line_slice) {
8081 if grapheme == "\t" {
81− // TODO: this should be const TAB_WIDTH
82− col += 4;
82+ col += TAB_WIDTH;
8383 } else {
8484 let grapheme = Cow::from(grapheme);
8585 col += grapheme_width(&grapheme);