Skip to content

Commit

Permalink
textbox.rs: (misc) Cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
simnalamburt committed Sep 30, 2024
1 parent 87d43b0 commit 129ce71
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/modalkit-ratatui/src/textbox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,8 @@ where
.char_indices()
.map(|(i, _)| i)
.nth(cursor.x.saturating_sub(start))
.unwrap_or(s.len())].width_cjk() as u16;
.unwrap_or(s.len())]
.width_cjk() as u16;

state.term_cursor = (x + coff, y);
}
Expand Down Expand Up @@ -1015,7 +1016,8 @@ where
.char_indices()
.map(|(i, _)| i)
.nth(cursor.x.saturating_sub(start))
.unwrap_or(s.len())].width_cjk() as u16;
.unwrap_or(s.len())]
.width_cjk() as u16;

state.term_cursor = (x + coff, y);
}
Expand Down

0 comments on commit 129ce71

Please sign in to comment.