diff --git a/doc.go b/doc.go index 0eed22f..531a34c 100644 --- a/doc.go +++ b/doc.go @@ -68,7 +68,7 @@ keybindings: cmd-delete-home (default '') cmd-delete-end (default '') cmd-delete-unix-word (default '') - cmd-put (default '') + cmd-yank (default '') cmd-transpose (default '') cmd-interrupt (default '') cmd-word (default '') diff --git a/docstring.go b/docstring.go index da50f84..848a5f5 100644 --- a/docstring.go +++ b/docstring.go @@ -72,7 +72,7 @@ keybindings: cmd-delete-home (default '') cmd-delete-end (default '') cmd-delete-unix-word (default '') - cmd-put (default '') + cmd-yank (default '') cmd-transpose (default '') cmd-interrupt (default '') cmd-word (default '') diff --git a/eval.go b/eval.go index 054be25..8a613ca 100644 --- a/eval.go +++ b/eval.go @@ -597,7 +597,7 @@ func (e *callExpr) eval(app *app, args []string) { ind := strings.LastIndex(strings.TrimRight(string(app.ui.cmdAccLeft), " "), " ") + 1 app.ui.cmdBuf = app.ui.cmdAccLeft[ind:] app.ui.cmdAccLeft = app.ui.cmdAccLeft[:ind] - case "cmd-put": + case "cmd-yank": app.ui.cmdAccLeft = append(app.ui.cmdAccLeft, app.ui.cmdBuf...) case "cmd-transpose": if len(app.ui.cmdAccLeft) > 1 { diff --git a/opts.go b/opts.go index 751a8fa..5b19a79 100644 --- a/opts.go +++ b/opts.go @@ -139,7 +139,7 @@ func init() { gOpts.cmdkeys[""] = &callExpr{"cmd-delete-home", nil, 1} gOpts.cmdkeys[""] = &callExpr{"cmd-delete-end", nil, 1} gOpts.cmdkeys[""] = &callExpr{"cmd-delete-unix-word", nil, 1} - gOpts.cmdkeys[""] = &callExpr{"cmd-put", nil, 1} + gOpts.cmdkeys[""] = &callExpr{"cmd-yank", nil, 1} gOpts.cmdkeys[""] = &callExpr{"cmd-transpose", nil, 1} gOpts.cmdkeys[""] = &callExpr{"cmd-interrupt", nil, 1} gOpts.cmdkeys[""] = &callExpr{"cmd-word", nil, 1}