diff options
Diffstat (limited to 'helix-view/src/view.rs')
-rw-r--r-- | helix-view/src/view.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-view/src/view.rs b/helix-view/src/view.rs index 8b677adc..1332f11e 100644 --- a/helix-view/src/view.rs +++ b/helix-view/src/view.rs @@ -5,6 +5,7 @@ use std::{borrow::Cow, path::PathBuf}; use crate::theme::Theme; use helix_core::{ graphemes::{grapheme_width, RopeGraphemes}, + indent::TAB_WIDTH, History, Position, RopeSlice, State, }; use tui::layout::Rect; @@ -78,8 +79,7 @@ impl View { for grapheme in RopeGraphemes::new(&line_slice) { if grapheme == "\t" { - // TODO: this should be const TAB_WIDTH - col += 4; + col += TAB_WIDTH; } else { let grapheme = Cow::from(grapheme); col += grapheme_width(&grapheme); |