From b0bb7f818b505f38ec9868239fc856eb29e290d8 Mon Sep 17 00:00:00 2001 From: unspeaker Date: Sun, 23 Mar 2025 21:28:58 +0200 Subject: [PATCH] 0.3.4: fix the *other* off-by-1 error --- Cargo.lock | 10 +++++----- Cargo.toml | 2 +- tui/src/tui_content/tui_string.rs | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a2c8cd6..5833ac3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -934,7 +934,7 @@ dependencies = [ [[package]] name = "tengri" -version = "0.3.3" +version = "0.3.4" dependencies = [ "tengri_dsl", "tengri_input", @@ -944,7 +944,7 @@ dependencies = [ [[package]] name = "tengri_dsl" -version = "0.3.3" +version = "0.3.4" dependencies = [ "itertools 0.14.0", "konst", @@ -955,7 +955,7 @@ dependencies = [ [[package]] name = "tengri_input" -version = "0.3.3" +version = "0.3.4" dependencies = [ "tengri_dsl", "tengri_tui", @@ -963,7 +963,7 @@ dependencies = [ [[package]] name = "tengri_output" -version = "0.3.3" +version = "0.3.4" dependencies = [ "proptest", "proptest-derive", @@ -974,7 +974,7 @@ dependencies = [ [[package]] name = "tengri_tui" -version = "0.3.3" +version = "0.3.4" dependencies = [ "atomic_float", "better-panic", diff --git a/Cargo.toml b/Cargo.toml index 20f534f..e0a2345 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [workspace.package] -version = "0.3.3" +version = "0.3.4" [workspace] resolver = "2" diff --git a/tui/src/tui_content/tui_string.rs b/tui/src/tui_content/tui_string.rs index 8267a99..4a8c86c 100644 --- a/tui/src/tui_content/tui_string.rs +++ b/tui/src/tui_content/tui_string.rs @@ -39,7 +39,7 @@ impl> Content for TrimStringRef<'_, T> { break } if let Some(cell) = target.buffer.cell_mut(Position { - x: area.x() + width, + x: area.x() + width - 1, y: area.y() }) { cell.set_char(c);