reset history counter to zero when enter key is pressed

This commit is contained in:
raziman 2021-02-17 21:41:34 +08:00
parent 6a82e2a113
commit 9d68f24e78

View File

@ -629,6 +629,7 @@ func replPopup() {
text := input.GetText()
// most recent is placed the most front
history = append([]string{text}, history...)
upCount = 0
input.SetText("")