diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2015-01-17 10:55:05 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2015-01-17 10:55:05 +0900 |
| commit | ea22292d2cec744bf9b2f9cf12f80c50da07fa03 (patch) | |
| tree | 213f74544ce2202dbfcfe4f25879b2d6358d5948 /src | |
| parent | 62acb9adc47e714a427f12cb2e2c6ebca0bd7f38 (diff) | |
| parent | 1990f3c992b7825dce6c959e2b4f26429c148cc9 (diff) | |
| download | fzf-ea22292d2cec744bf9b2f9cf12f80c50da07fa03.tar.gz | |
Merge pull request #117 from junegunn/fix-ctrl-y
Fix CTRL-Y key binding
Diffstat (limited to 'src')
| -rw-r--r-- | src/Makefile | 4 | ||||
| -rw-r--r-- | src/terminal.go | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/Makefile b/src/Makefile index 4610e586..2604c3ba 100644 --- a/src/Makefile +++ b/src/Makefile @@ -22,7 +22,7 @@ VERSION = $(shell fzf/$(BINARY64) --version) RELEASE32 = fzf-$(VERSION)-$(GOOS)_386 RELEASE64 = fzf-$(VERSION)-$(GOOS)_amd64 -all: test release +all: release release: build cd fzf && \ @@ -30,7 +30,7 @@ release: build cp $(BINARY64) $(RELEASE64) && tar -czf $(RELEASE64).tgz $(RELEASE64) && \ rm $(RELEASE32) $(RELEASE64) -build: fzf/$(BINARY32) fzf/$(BINARY64) +build: test fzf/$(BINARY32) fzf/$(BINARY64) test: go get 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() |
