{"action":"created","issue":{"url":"https://api.github.com/repos/junegunn/fzf/issues/732","repository_url":"https://api.github.com/repos/junegunn/fzf","labels_url":"https://api.github.com/repos/junegunn/fzf/issues/732/labels{/name}","comments_url":"https://api.github.com/repos/junegunn/fzf/issues/732/comments","events_url":"https://api.github.com/repos/junegunn/fzf/issues/732/events","html_url":"https://github.com/junegunn/fzf/issues/732","id":188133275,"number":732,"title":"panic: --header-lines=1","user":{"login":"justinmk","id":1359421,"avatar_url":"https://avatars.githubusercontent.com/u/1359421?v=3","gravatar_id":"","url":"https://api.github.com/users/justinmk","html_url":"https://github.com/justinmk","followers_url":"https://api.github.com/users/justinmk/followers","following_url":"https://api.github.com/users/justinmk/following{/other_user}","gists_url":"https://api.github.com/users/justinmk/gists{/gist_id}","starred_url":"https://api.github.com/users/justinmk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinmk/subscriptions","organizations_url":"https://api.github.com/users/justinmk/orgs","repos_url":"https://api.github.com/users/justinmk/repos","events_url":"https://api.github.com/users/justinmk/events{/privacy}","received_events_url":"https://api.github.com/users/justinmk/received_events","type":"User","site_admin":false},"labels":[{"id":62305244,"url":"https://api.github.com/repos/junegunn/fzf/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-08T23:33:51Z","updated_at":"2016-11-09T03:13:24Z","closed_at":"2016-11-09T03:06:28Z","body":"<!-- Check all that apply [x] -->\r\n- Category\r\n    - [x] fzf binary\r\n    - [ ] fzf-tmux script\r\n    - [ ] Key bindings\r\n    - [ ] Completion\r\n    - [ ] Vim\r\n    - [ ] Neovim\r\n    - [ ] Etc.\r\n- OS\r\n    - [x] Linux\r\n    - [ ] Mac OS X\r\n    - [ ] Windows\r\n    - [ ] Etc.\r\n- Shell\r\n    - [x] bash\r\n    - [ ] zsh\r\n    - [ ] fish\r\n\r\nfzf version: `0.15.6`\r\n\r\nPiping the file in this gist causes a panic.\r\nhttps://gist.github.com/anonymous/9ea47070a093c04a38911957a01705c5\r\n\r\n    cat /file/from/gist | fzf  --header-lines=1\r\n\r\nWithout `--header-lines=1`, no panic.\r\n\r\n````\r\npanic: runtime error: invalid memory address or nil pointer dereference\r\n[signal SIGSEGV: segmentation violation code=0x1 addr=0x2 pc=0x4821a8]\r\n  goroutine 8 [running]: panic(0x5481c0, 0xc4200120b0)\r\n  /go1.7/src/runtime/panic.go:500 +0x1a1\r\n  github.com/junegunn/fzf/src.(*Result).colorOffsets.func1(0x4)\r\n  /fzf/gopath/src/github.com/junegunn/fzf/src/result.go:162 +0x308\r\n  github.com/junegunn/fzf/src.(*Result).colorOffsets(0xc42003bd08, 0x831d10,\r\n  0x0, 0x0, 0x0, 0x0, 0x300000000, 0xc42003bb01, 0x8, 0x0)\r\n  /fzf/gopath/src/github.com/junegunn/fzf/src/result.go:174 +0x558\r\n  github.com/junegunn/fzf/src.(*Terminal).printHighlighted(0xc420076a00,\r\n  0xc42003bd08, 0xa00000000, 0xc4200f2600)\r\n  /fzf/gopath/src/github.com/junegunn/fzf/src/terminal.go:725 +0x1d8\r\n  github.com/junegunn/fzf/src.(*Terminal).printHeader(0xc420076a00)\r\n  /fzf/gopath/src/github.com/junegunn/fzf/src/terminal.go:596 +0x2e3\r\n  github.com/junegunn/fzf/src.(*Terminal).Loop(0xc420076a00)\r\n  /fzf/gopath/src/github.com/junegunn/fzf/src/terminal.go:1039 +0x290 created by\r\n  github.com/junegunn/fzf/src.Run\r\n  /fzf/gopath/src/github.com/junegunn/fzf/src/core.go:205 +0xbc7\r\n```"},"comment":{"url":"https://api.github.com/repos/junegunn/fzf/issues/comments/259325026","html_url":"https://github.com/junegunn/fzf/issues/732#issuecomment-259325026","issue_url":"https://api.github.com/repos/junegunn/fzf/issues/732","id":259325026,"user":{"login":"junegunn","id":700826,"avatar_url":"https://avatars.githubusercontent.com/u/700826?v=3","gravatar_id":"","url":"https://api.github.com/users/junegunn","html_url":"https://github.com/junegunn","followers_url":"https://api.github.com/users/junegunn/followers","following_url":"https://api.github.com/users/junegunn/following{/other_user}","gists_url":"https://api.github.com/users/junegunn/gists{/gist_id}","starred_url":"https://api.github.com/users/junegunn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junegunn/subscriptions","organizations_url":"https://api.github.com/users/junegunn/orgs","repos_url":"https://api.github.com/users/junegunn/repos","events_url":"https://api.github.com/users/junegunn/events{/privacy}","received_events_url":"https://api.github.com/users/junegunn/received_events","type":"User","site_admin":false},"created_at":"2016-11-09T03:13:24Z","updated_at":"2016-11-09T03:13:24Z","body":"Should be fixed now. I'll release a new version shortly. Thanks for the report."}}
{"actor":{"display_login":"junegunn"}}