diff options
-rw-r--r-- | go.mod | 2 | ||||
-rw-r--r-- | go.sum | 2 | ||||
-rw-r--r-- | pkg/gui/editors.go | 4 | ||||
-rw-r--r-- | vendor/github.com/jesseduffield/gocui/edit.go | 4 | ||||
-rw-r--r-- | vendor/modules.txt | 2 |
5 files changed, 8 insertions, 6 deletions
@@ -20,7 +20,7 @@ require ( github.com/imdario/mergo v0.3.11 github.com/integrii/flaggy v1.4.0 github.com/jesseduffield/go-git/v5 v5.1.2-0.20201006095850-341962be15a4 - github.com/jesseduffield/gocui v0.3.1-0.20211017063715-c74848d8ad00 + github.com/jesseduffield/gocui v0.3.1-0.20211017091015-8bf4a4666b77 github.com/jesseduffield/yaml v2.1.0+incompatible github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0 github.com/konsorten/go-windows-terminal-sequences v1.0.2 // indirect @@ -75,6 +75,8 @@ github.com/jesseduffield/gocui v0.3.1-0.20211017041119-0ec562dfd23b h1:kepukaDQf github.com/jesseduffield/gocui v0.3.1-0.20211017041119-0ec562dfd23b/go.mod h1:znJuCDnF2Ph40YZSlBwdX/4GEofnIoWLGdT4mK5zRAU= github.com/jesseduffield/gocui v0.3.1-0.20211017063715-c74848d8ad00 h1:5TusU8ir9OHg3By2PPmLwa2y+2G9F+16QRK8bpofsC0= github.com/jesseduffield/gocui v0.3.1-0.20211017063715-c74848d8ad00/go.mod h1:znJuCDnF2Ph40YZSlBwdX/4GEofnIoWLGdT4mK5zRAU= +github.com/jesseduffield/gocui v0.3.1-0.20211017091015-8bf4a4666b77 h1:MQUxSxVBTZQpSYybEiFA4+oIi02ycTKGCqgHItYi/20= +github.com/jesseduffield/gocui v0.3.1-0.20211017091015-8bf4a4666b77/go.mod h1:znJuCDnF2Ph40YZSlBwdX/4GEofnIoWLGdT4mK5zRAU= github.com/jesseduffield/yaml v2.1.0+incompatible h1:HWQJ1gIv2zHKbDYNp0Jwjlj24K8aqpFHnMCynY1EpmE= github.com/jesseduffield/yaml v2.1.0+incompatible/go.mod h1:w0xGhOSIJCGYYW+hnFPTutCy5aACpkcwbmORt5axGqk= github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= diff --git a/pkg/gui/editors.go b/pkg/gui/editors.go index 6cc6409cb..b94e6b5bd 100644 --- a/pkg/gui/editors.go +++ b/pkg/gui/editors.go @@ -37,9 +37,9 @@ func (gui *Gui) handleEditorKeypress(textArea *gocui.TextArea, key gocui.Key, ch textArea.ToggleOverwrite() case key == gocui.KeyCtrlU: textArea.DeleteToStartOfLine() - case key == gocui.KeyCtrlA: + case key == gocui.KeyCtrlA || key == gocui.KeyHome: textArea.GoToStartOfLine() - case key == gocui.KeyCtrlE: + case key == gocui.KeyCtrlE || key == gocui.KeyEnd: textArea.GoToEndOfLine() // TODO: see if we need all three of these conditions: maybe the final one is sufficient diff --git a/vendor/github.com/jesseduffield/gocui/edit.go b/vendor/github.com/jesseduffield/gocui/edit.go index 243a59663..8c4b74adf 100644 --- a/vendor/github.com/jesseduffield/gocui/edit.go +++ b/vendor/github.com/jesseduffield/gocui/edit.go @@ -49,9 +49,9 @@ func simpleEditor(v *View, key Key, ch rune, mod Modifier) bool { v.TextArea.ToggleOverwrite() case key == KeyCtrlU: v.TextArea.DeleteToStartOfLine() - case key == KeyCtrlA: + case key == KeyCtrlA || key == KeyHome: v.TextArea.GoToStartOfLine() - case key == KeyCtrlE: + case key == KeyCtrlE || key == KeyEnd: v.TextArea.GoToEndOfLine() // TODO: see if we need all three of these conditions: maybe the final one is sufficient diff --git a/vendor/modules.txt b/vendor/modules.txt index 88542c50e..966a9cf2b 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -152,7 +152,7 @@ github.com/jesseduffield/go-git/v5/utils/merkletrie/filesystem github.com/jesseduffield/go-git/v5/utils/merkletrie/index github.com/jesseduffield/go-git/v5/utils/merkletrie/internal/frame github.com/jesseduffield/go-git/v5/utils/merkletrie/noder -# github.com/jesseduffield/gocui v0.3.1-0.20211017063715-c74848d8ad00 +# github.com/jesseduffield/gocui v0.3.1-0.20211017091015-8bf4a4666b77 ## explicit github.com/jesseduffield/gocui # github.com/jesseduffield/yaml v2.1.0+incompatible |