Skip to content

Commit 18a13e3

Browse files
has issues
1 parent 70b8851 commit 18a13e3

26 files changed

+4184
-228
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ license = "MIT"
9292
name = "boxmux"
9393
readme = "README.md"
9494
repository = "https://github.com/jowharshamshiri/boxmux"
95-
version = "0.234.291532"
95+
version = "0.235.291695"
9696

9797
[package.metadata.deb]
9898
assets = [["target/release/boxmux", "usr/bin/", "755"], ["README.md", "usr/share/doc/boxmux/README", "644"], ["examples/*", "usr/share/doc/boxmux/examples/", "644"]]

diff.txt

Lines changed: 533 additions & 0 deletions
Large diffs are not rendered by default.

src/components/border.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use crate::model::muxbox::MuxBox;
22
use crate::pty_manager::PtyManager;
33
use crate::{Bounds, Cell, ScreenBuffer};
4+
use crate::components::ComponentDimensions;
45

56
/// Border component for rendering box borders with various styles and states
67
pub struct Border {
@@ -189,7 +190,9 @@ impl Border {
189190
);
190191

191192
// Draw horizontal edges
192-
for x in (bounds.left() + 1)..bounds.right() {
193+
let component_dims = ComponentDimensions::new(*bounds);
194+
let inside_border = component_dims.inside_border_bounds();
195+
for x in inside_border.left()..bounds.right() {
193196
buffer.update(
194197
x,
195198
bounds.top(),
@@ -211,7 +214,7 @@ impl Border {
211214
}
212215

213216
// Draw vertical edges
214-
for y in (bounds.top() + 1)..bounds.bottom() {
217+
for y in inside_border.top()..bounds.bottom() {
215218
buffer.update(
216219
bounds.left(),
217220
y,

src/components/box_renderer.rs

Lines changed: 154 additions & 149 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)