diff options
author | ZJPzjp | 2023-05-11 05:44:52 +0000 |
---|---|---|
committer | GitHub | 2023-05-11 05:44:52 +0000 |
commit | 3b8c15618f51889ffd2f2f4be32f8404c1517956 (patch) | |
tree | e3083a28d98fe1faf45fc37b9bdd28340fd6186e /helix-tui | |
parent | 1e5997dc98ecd82b09ccee9fbe8d5350fd333fad (diff) |
Fix warnings from clippy (#7013)
* Fix warnings from clippy
* revert MAIN_SEPARATOR_STR
Diffstat (limited to 'helix-tui')
-rw-r--r-- | helix-tui/src/buffer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-tui/src/buffer.rs b/helix-tui/src/buffer.rs index 8e0b0adf..93e9fcf9 100644 --- a/helix-tui/src/buffer.rs +++ b/helix-tui/src/buffer.rs @@ -442,7 +442,7 @@ impl Buffer { let mut x_offset = x as usize; let max_offset = min(self.area.right(), width.saturating_add(x)); let mut start_index = self.index_of(x, y); - let mut index = self.index_of(max_offset as u16, y); + let mut index = self.index_of(max_offset, y); let content_width = spans.width(); let truncated = content_width > width as usize; |