Skip to content

Commit

Permalink
fix(terminal): properly trim lines with widechars on resize (#1545)
Browse files Browse the repository at this point in the history
  • Loading branch information
imsnif authored Jun 27, 2022
1 parent 0d48195 commit 7c5c134
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zellij-server/src/panes/grid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,8 @@ impl Grid {
}
}
if let Some(trim_at) = trim_at {
line.truncate(trim_at);
let excess_width_until_trim_at = line.excess_width_until(trim_at);
line.truncate(trim_at + excess_width_until_trim_at);
}
}

Expand Down

0 comments on commit 7c5c134

Please sign in to comment.