summaryrefslogtreecommitdiffstats
path: root/vendor
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-08-14 14:33:44 +1000
committerJesse Duffield <jessedduffield@gmail.com>2022-08-14 17:20:52 +1000
commit5173d7f5e17fbcab8cf2411abae1e064b076ebbb (patch)
treec5cc281b56f6b927e5408ec1961bfafd4dea8049 /vendor
parent349a7d24532a32feaaf40129b3b07b9215b8a625 (diff)
better CLI interface
Diffstat (limited to 'vendor')
-rw-r--r--vendor/github.com/jesseduffield/gocui/edit.go6
1 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 8c4b74adf..dde27e76a 100644
--- a/vendor/github.com/jesseduffield/gocui/edit.go
+++ b/vendor/github.com/jesseduffield/gocui/edit.go
@@ -24,10 +24,10 @@ func (f EditorFunc) Edit(v *View, key Key, ch rune, mod Modifier) bool {
}
// DefaultEditor is the default editor.
-var DefaultEditor Editor = EditorFunc(simpleEditor)
+var DefaultEditor Editor = EditorFunc(SimpleEditor)
-// simpleEditor is used as the default gocui editor.
-func simpleEditor(v *View, key Key, ch rune, mod Modifier) bool {
+// SimpleEditor is used as the default gocui editor.
+func SimpleEditor(v *View, key Key, ch rune, mod Modifier) bool {
switch {
case key == KeyBackspace || key == KeyBackspace2:
v.TextArea.BackSpaceChar()