Skip to content

Commit

Permalink
Merge pull request #302 from hearth-rs/fix-terminal-padding
Browse files Browse the repository at this point in the history
terminal: ceil->floor available panel size
  • Loading branch information
marceline-cramer committed Feb 1, 2024
2 parents 9a392fa + 3fc891c commit 6acbf4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/terminal/src/terminal.rs
Expand Up @@ -174,7 +174,7 @@ impl Terminal {

let available = (initial_state.half_size - initial_state.padding) * 2.0;
let grid_size = (available / cell_size / initial_state.units_per_em)
.ceil()
.floor()
.as_uvec2();

let size_info = alacritty_terminal::term::SizeInfo::new(
Expand Down Expand Up @@ -253,7 +253,7 @@ impl Terminal {

let available = (state.half_size - state.padding) * 2.0;
let grid_size = (available / self.cell_size / state.units_per_em)
.ceil()
.floor()
.as_uvec2();

if inner.grid_size != grid_size {
Expand Down

0 comments on commit 6acbf4c

Please sign in to comment.