Updated Dependency (Fix Ctrl+U Behavior)

This commit is contained in:
Brian Buller 2017-09-04 09:32:57 -05:00
parent 4d25527218
commit 8733dcb5e3
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ func (i *InputField) HandleEvent(event termbox.Event) bool {
}
} else if event.Key == termbox.KeyCtrlU {
// Ctrl+U Clears the Input (before the cursor)
i.value = i.value[i.cursor:]
i.value = i.value[i.cursor+len(i.value):]
} else {
// Get the rune to add to our value. Space and Tab are special cases where
// we can't use the event's rune directly