summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/state/view/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/state/view/mod.rs b/src/state/view/mod.rs
index e45a3f4..1825128 100644
--- a/src/state/view/mod.rs
+++ b/src/state/view/mod.rs
@@ -41,8 +41,8 @@ impl SheetViewState {
if let Some(id) = sheet {
if let Some(lock) = Register::get(id) {
let sheet = lock.read().unwrap();
- self.cursor.set_x_max(sheet.width());
- self.cursor.set_y_max(sheet.height());
+ self.cursor.set_x_max(sheet.width() - 1);
+ self.cursor.set_y_max(sheet.height() - 1);
}
}