mirror of
https://github.com/Maks1mS/bubbles.git
synced 2024-12-25 07:04:37 +03:00
Fix ^E binding
This commit is contained in:
parent
ca91eb2e79
commit
7b06eb538b
@ -73,7 +73,7 @@ func Update(msg tea.Msg, m Model) (Model, tea.Cmd) {
|
|||||||
}
|
}
|
||||||
return m, nil
|
return m, nil
|
||||||
case tea.KeyCtrlE: // ^E, end
|
case tea.KeyCtrlE: // ^E, end
|
||||||
m.pos = len(m.Value) - 1
|
m.pos = len(m.Value)
|
||||||
return m, nil
|
return m, nil
|
||||||
case tea.KeyCtrlK: // ^K, kill text after cursor
|
case tea.KeyCtrlK: // ^K, kill text after cursor
|
||||||
m.Value = m.Value[:m.pos]
|
m.Value = m.Value[:m.pos]
|
||||||
|
Loading…
Reference in New Issue
Block a user