Bug fix + remove a debug print I accidentally left in.

This commit is contained in:
Nathan Vegdahl 2020-02-01 22:43:06 +09:00
parent ebfedab58c
commit db0ce6a4f6
2 changed files with 2 additions and 1 deletions

View File

@ -57,7 +57,7 @@ pub trait LineFormatter {
// Find the right block in the line, and the index within that block
let (_, block_range) = block_index_and_range(&line, col_i);
let col_i_adjusted = col_i - dbg!(block_range).0;
let col_i_adjusted = col_i - block_range.0;
// Get an iter into the right block
let g_iter = RopeGraphemes::new(&line.slice(block_range.0..block_range.1));

View File

@ -601,6 +601,7 @@ impl TermUI {
g_iter = editor.formatter.iter(RopeGraphemes::new(
&line.slice(block_range.0..block_range.1),
));
lines_traversed += 1;
} else {
break;
}