Reset keyboard state when resetting text

This commit is contained in:
Kovid Goyal
2022-11-06 11:44:20 +05:30
parent 5a425ccaad
commit 6b48624b81
2 changed files with 6 additions and 5 deletions

View File

@@ -203,6 +203,7 @@ func (self *Readline) ResetText() {
self.cursor = Position{}
self.cursor_y = 0
self.last_action = ActionNil
self.keyboard_state = KeyboardState{}
}
func (self *Readline) ChangeLoopAndResetText(lp *loop.Loop) {