mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
Fixed cursor
This commit is contained in:
@@ -209,7 +209,7 @@ impl Component for Input {
|
|||||||
if self.states.focus {
|
if self.states.focus {
|
||||||
let x: u16 =
|
let x: u16 =
|
||||||
area.x + (self.states.render_value(self.props.input_type).width() as u16) + 1;
|
area.x + (self.states.render_value(self.props.input_type).width() as u16) + 1;
|
||||||
render.set_cursor(x, area.y);
|
render.set_cursor(x, area.y + 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user