diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2016-11-07 02:15:34 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2016-11-08 02:06:34 +0900 |
| commit | 898d8d94c858774b02668c1490068cf086a1f9f0 (patch) | |
| tree | 4229f5c2b63b228e8e1e2d1609c3ce587c819162 /src/reader.go | |
| parent | 26895da96918f9b1956a04981c8af5f3e42fcbd8 (diff) | |
| download | fzf-898d8d94c858774b02668c1490068cf086a1f9f0.tar.gz | |
Fix issues in tcell renderer and Windows build
- Fix display of CJK wide characters
- Fix horizontal offset of header lines
- Add support for keys with ALT modifier, shift-tab, page-up and down
- Fix util.ExecCommand to properly parse command-line arguments
- Fix redraw on resize
- Implement Pause/Resume for execute action
- Remove runtime check of GOOS
- Change exit status to 2 when tcell failed to start
- TBD: Travis CI build for tcell renderer
- Pending. tcell cannot reliably ingest keys from tmux send-keys
Diffstat (limited to 'src/reader.go')
| -rw-r--r-- | src/reader.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/reader.go b/src/reader.go index 15a0f44e..7e8e2e01 100644 --- a/src/reader.go +++ b/src/reader.go @@ -4,7 +4,6 @@ import ( "bufio" "io" "os" - "runtime" "github.com/junegunn/fzf/src/util" ) @@ -44,7 +43,7 @@ func (r *Reader) feed(src io.Reader) { if len(bytea) > 0 { if err == nil { // get rid of carriage return if under Windows: - if runtime.GOOS == "windows" && byteaLen >= 2 && bytea[byteaLen-2] == byte('\r') { + if util.IsWindows() && byteaLen >= 2 && bytea[byteaLen-2] == byte('\r') { bytea = bytea[:byteaLen-2] } else { bytea = bytea[:byteaLen-1] |
