Skip to content

Commit

Permalink
fix: replace use of deprecated set_cursor method
Browse files Browse the repository at this point in the history
  • Loading branch information
Beastwick18 committed Aug 14, 2024
1 parent ab45266 commit fc66dc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widget/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ impl InputWidget {
pub fn show_cursor(&self, f: &mut Frame, area: Rect) {
let cursor = self.get_cursor_pos();

f.set_cursor(min(area.x + cursor as u16, area.x + area.width), area.y);
f.set_cursor_position((min(area.x + cursor as u16, area.x + area.width), area.y));
}

pub fn set_cursor(&mut self, idx: usize) {
Expand Down

0 comments on commit fc66dc7

Please sign in to comment.