summaryrefslogtreecommitdiffstats
path: root/vendor
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2021-10-17 20:11:16 +1100
committerJesse Duffield <jessedduffield@gmail.com>2021-10-17 20:14:31 +1100
commita05f22efa2288b4d05ab2d884590565853dc6b9f (patch)
tree1210f5f7133eb8da450d69774e260cc6c1d53205 /vendor
parentc0cd9dd83535522caa3b7908b33d535df96e04b3 (diff)
support home/end keys in editors
Diffstat (limited to 'vendor')
-rw-r--r--vendor/github.com/jesseduffield/gocui/edit.go4
-rw-r--r--vendor/modules.txt2
2 files changed, 3 insertions, 3 deletions
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