@@ -5,6 +5,7 @@ use std::{borrow::Cow, path::PathBuf};
5use crate::theme::Theme;
5use crate::theme::Theme;
6use helix_core::{
6use helix_core::{
7 graphemes::{grapheme_width, RopeGraphemes},
7 graphemes::{grapheme_width, RopeGraphemes},
8 History, Position, RopeSlice, State,
9 History, Position, RopeSlice, State,
10use tui::layout::Rect;
11use tui::layout::Rect;
@@ -78,8 +79,7 @@ impl View {
79 for grapheme in RopeGraphemes::new(&line_slice) {
80 for grapheme in RopeGraphemes::new(&line_slice) {
80 if grapheme == "\t" {
81 if grapheme == "\t" {
81− // TODO: this should be const TAB_WIDTH
82+ col += TAB_WIDTH;
84 let grapheme = Cow::from(grapheme);
84 let grapheme = Cow::from(grapheme);
85 col += grapheme_width(&grapheme);
85 col += grapheme_width(&grapheme);