Skip to content

Commit

Permalink
There are only new saved coordinates when there were old ones
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanhs committed Dec 24, 2023
1 parent 36e84f2 commit 76468ea
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions zellij-server/src/panes/grid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -911,10 +911,9 @@ impl Grid {
saved_cursor_position.x = saved_cursor_x_coordinates;
saved_cursor_position.y = saved_cursor_y_coordinates;
},
_ => {
saved_cursor_position.x = new_cursor_x;
saved_cursor_position.y = new_cursor_y;
},
_ => unreachable!("saved cursor {:?} {:?}",
saved_cursor_x_coordinates,
saved_cursor_y_coordinates),
}
};
}
Expand Down

0 comments on commit 76468ea

Please sign in to comment.