mirror of
https://github.com/gitui-org/gitui
synced 2026-05-23 17:08:21 +00:00
Fix textinput cursor was not reset after msg.clear
This commit is contained in:
parent
b86f3a3f40
commit
b4a466876e
1 changed files with 1 additions and 0 deletions
|
|
@ -47,6 +47,7 @@ impl TextInputComponent {
|
|||
/// Clear the `msg`.
|
||||
pub fn clear(&mut self) {
|
||||
self.msg.clear();
|
||||
self.cursor_position = 0;
|
||||
}
|
||||
|
||||
/// Get the `msg`.
|
||||
|
|
|
|||
Loading…
Reference in a new issue