fix(compatibility): acknowledge scroll region even if the cursor is not shown
@@ -394,8 +394,6 @@ impl Scroll {
pub fn add_canonical_line(&mut self) {
let current_canonical_line_index = self.cursor_position.line_index.0;
if let Some((scroll_region_top, scroll_region_bottom)) = self.scroll_region {
- if self.show_cursor {
- // scroll region should be ignored if the cursor is hidden
if current_canonical_line_index == scroll_region_bottom {
// end of scroll region
// when we have a scroll region set and we're at its bottom
@@ -409,7 +407,6 @@ impl Scroll {
return;
}
}
- }
use std::cmp::Ordering;
match current_canonical_line_index.cmp(&(self.canonical_lines.len() - 1)) {
