fix(terminal): cursor overflow (#3894)
This commit is contained in:
parent
2e58ad38c4
commit
d70cd011c2
3 changed files with 3 additions and 3 deletions
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ swap_tiled_layout name="vertical" {
|
|||
}
|
||||
|
||||
swap_tiled_layout name="horizontal" {
|
||||
ui max_panes=5 {
|
||||
ui max_panes=4 {
|
||||
pane
|
||||
pane
|
||||
}
|
||||
|
|
|
|||
|
|
@ -808,7 +808,7 @@ Layout {
|
|||
(
|
||||
{
|
||||
MaxPanes(
|
||||
5,
|
||||
4,
|
||||
): TiledPaneLayout {
|
||||
children_split_direction: Horizontal,
|
||||
name: None,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue