diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2015-01-17 04:55:29 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2015-01-17 06:04:59 +0900 |
commit | ae3180f91994cd6129dbb80144cda4b1abeb6ec0 (patch) | |
tree | 778636b2d765db20b9aa1a1323f5f183d7f01651 /src/terminal.go | |
parent | 62acb9adc47e714a427f12cb2e2c6ebca0bd7f38 (diff) |
Fix CTRL-Y key binding
With tmux-based test cases
Diffstat (limited to 'src/terminal.go')
-rw-r--r-- | src/terminal.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/terminal.go b/src/terminal.go index 44796cec..abd70690 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -515,7 +515,8 @@ func (t *Terminal) Loop() { t.rubout("[^[:alnum:]][[:alnum:]]") } case C.CtrlY: - t.input = append(append(t.input[:t.cx], t.yanked...), t.input[t.cx:]...) + suffix := copySlice(t.input[t.cx:]) + t.input = append(append(t.input[:t.cx], t.yanked...), suffix...) t.cx += len(t.yanked) case C.Del: t.delChar() |