|
|
@ -207,16 +207,19 @@ pub fn render_text<'t>(
|
|
|
|
it
|
|
|
|
it
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
let mut last_pos = formatter.visual_pos();
|
|
|
|
let mut last_pos = formatter.visual_pos();
|
|
|
|
last_pos.col -= 1;
|
|
|
|
if last_pos.row >= row_off {
|
|
|
|
// check if any positions translated on the fly (like cursor) are at the EOF
|
|
|
|
last_pos.col -= 1;
|
|
|
|
translate_positions(
|
|
|
|
last_pos.row -= row_off;
|
|
|
|
char_pos + 1,
|
|
|
|
// check if any positions translated on the fly (like cursor) are at the EOF
|
|
|
|
first_visible_char_idx,
|
|
|
|
translate_positions(
|
|
|
|
translated_positions,
|
|
|
|
char_pos + 1,
|
|
|
|
text_fmt,
|
|
|
|
first_visible_char_idx,
|
|
|
|
renderer,
|
|
|
|
translated_positions,
|
|
|
|
last_pos,
|
|
|
|
text_fmt,
|
|
|
|
);
|
|
|
|
renderer,
|
|
|
|
|
|
|
|
last_pos,
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|