diff options
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() |
