Bug fix + remove a debug print I accidentally left in.
This commit is contained in:
parent
ebfedab58c
commit
db0ce6a4f6
|
@ -57,7 +57,7 @@ pub trait LineFormatter {
|
||||||
|
|
||||||
// Find the right block in the line, and the index within that block
|
// Find the right block in the line, and the index within that block
|
||||||
let (_, block_range) = block_index_and_range(&line, col_i);
|
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
|
// Get an iter into the right block
|
||||||
let g_iter = RopeGraphemes::new(&line.slice(block_range.0..block_range.1));
|
let g_iter = RopeGraphemes::new(&line.slice(block_range.0..block_range.1));
|
||||||
|
|
|
@ -601,6 +601,7 @@ impl TermUI {
|
||||||
g_iter = editor.formatter.iter(RopeGraphemes::new(
|
g_iter = editor.formatter.iter(RopeGraphemes::new(
|
||||||
&line.slice(block_range.0..block_range.1),
|
&line.slice(block_range.0..block_range.1),
|
||||||
));
|
));
|
||||||
|
lines_traversed += 1;
|
||||||
} else {
|
} else {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user