mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-05 00:59:19 +02:00
build: $ ./scripts/bump_gocui.sh
This commit is contained in:
6
vendor/github.com/jesseduffield/gocui/edit.go
generated
vendored
6
vendor/github.com/jesseduffield/gocui/edit.go
generated
vendored
@ -49,10 +49,16 @@ func SimpleEditor(v *View, key Key, ch rune, mod Modifier) bool {
|
||||
v.TextArea.ToggleOverwrite()
|
||||
case key == KeyCtrlU:
|
||||
v.TextArea.DeleteToStartOfLine()
|
||||
case key == KeyCtrlK:
|
||||
v.TextArea.DeleteToEndOfLine()
|
||||
case key == KeyCtrlA || key == KeyHome:
|
||||
v.TextArea.GoToStartOfLine()
|
||||
case key == KeyCtrlE || key == KeyEnd:
|
||||
v.TextArea.GoToEndOfLine()
|
||||
case key == KeyCtrlW:
|
||||
v.TextArea.BackSpaceWord()
|
||||
case key == KeyCtrlY:
|
||||
v.TextArea.Yank()
|
||||
|
||||
// TODO: see if we need all three of these conditions: maybe the final one is sufficient
|
||||
case ch != 0 && mod == 0 && unicode.IsPrint(ch):
|
||||
|
Reference in New Issue
Block a user