Skip to content

Commit

Permalink
fix very large string line_count
Browse files Browse the repository at this point in the history
  • Loading branch information
Shayan Hashemi committed Feb 10, 2025
1 parent bc41ff6 commit 78aea47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tui/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pub fn line_count(text: &str, width: usize) -> usize {
} else {
line_count += word_len
.saturating_add(used_space)
.saturating_sub(used_space)
.saturating_sub(width)
.div_ceil(width)
}
}
Expand Down

0 comments on commit 78aea47

Please sign in to comment.