mirror of
https://github.com/extrawurst/gitui.git
synced 2024-11-27 10:15:07 +03:00
Fix textinput cursor was not reset after msg.clear
This commit is contained in:
parent
b86f3a3f40
commit
b4a466876e
@ -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 New Issue
Block a user