fix(terminal): cursor overflow (#3894)

This commit is contained in:
Aram Drevekenin 2024-12-26 18:40:14 +01:00 committed by GitHub
parent 2e58ad38c4
commit d70cd011c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -1144,7 +1144,7 @@ impl Grid {
)));
}
pub fn cursor_coordinates(&self) -> Option<(usize, usize)> {
if self.cursor_is_hidden {
if self.cursor_is_hidden || self.cursor.x >= self.width || self.cursor.y >= self.height {
None
} else {
Some((self.cursor.x, self.cursor.y))

View file

@ -31,7 +31,7 @@ swap_tiled_layout name="vertical" {
}
swap_tiled_layout name="horizontal" {
ui max_panes=5 {
ui max_panes=4 {
pane
pane
}

View file

@ -808,7 +808,7 @@ Layout {
(
{
MaxPanes(
5,
4,
): TiledPaneLayout {
children_split_direction: Horizontal,
name: None,