cursor_y should be zero when resetting

This commit is contained in:
Kovid Goyal 2022-11-08 10:43:57 +05:30
parent 0c82832356
commit 31dcb13836
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

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