Skip to content

Commit

Permalink
minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleades authored and jackpot51 committed Apr 26, 2024
1 parent 5f0a0ba commit 3ccfa45
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/terminal_box.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,8 @@ where
terminal.with_buffer(|buffer| {
let mut layout_lines = 0;
for line in &buffer.lines {
match line.layout_opt() {
Some(layout) => layout_lines += layout.len(),
None => (),
if let Some(layout) = line.layout_opt() {
layout_lines += layout.len()
}
}

Expand Down

0 comments on commit 3ccfa45

Please sign in to comment.