{"action":"created","issue":{"url":"https://api.github.com/repos/lvht/phpcd.vim/issues/126","repository_url":"https://api.github.com/repos/lvht/phpcd.vim","labels_url":"https://api.github.com/repos/lvht/phpcd.vim/issues/126/labels{/name}","comments_url":"https://api.github.com/repos/lvht/phpcd.vim/issues/126/comments","events_url":"https://api.github.com/repos/lvht/phpcd.vim/issues/126/events","html_url":"https://github.com/lvht/phpcd.vim/issues/126","id":285371973,"number":126,"title":"Infinite loop when create a buffer for a new file in a directory .","user":{"login":"kiooss","id":842321,"avatar_url":"https://avatars0.githubusercontent.com/u/842321?v=4","gravatar_id":"","url":"https://api.github.com/users/kiooss","html_url":"https://github.com/kiooss","followers_url":"https://api.github.com/users/kiooss/followers","following_url":"https://api.github.com/users/kiooss/following{/other_user}","gists_url":"https://api.github.com/users/kiooss/gists{/gist_id}","starred_url":"https://api.github.com/users/kiooss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiooss/subscriptions","organizations_url":"https://api.github.com/users/kiooss/orgs","repos_url":"https://api.github.com/users/kiooss/repos","events_url":"https://api.github.com/users/kiooss/events{/privacy}","received_events_url":"https://api.github.com/users/kiooss/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-01-02T07:53:31Z","updated_at":"2018-02-05T02:20:20Z","closed_at":"2018-02-03T18:01:22Z","author_association":"NONE","body":"Hello lvht,\r\n \r\nIf you create a buffer for a new file in a directory that doesn’t exist, the `phpcd#GetRoot()` function will fall into an infinite loop.\r\n\r\nFor example, in the project root(with no .phpcd.vim), if I do `vi foo/test.php` (dir `foo` does not exist) and `expand(\"%:p:h\")` seems to return `foo`.\r\n\r\nKind regards."},"comment":{"url":"https://api.github.com/repos/lvht/phpcd.vim/issues/comments/362964281","html_url":"https://github.com/lvht/phpcd.vim/issues/126#issuecomment-362964281","issue_url":"https://api.github.com/repos/lvht/phpcd.vim/issues/126","id":362964281,"user":{"login":"lvht","id":2030591,"avatar_url":"https://avatars0.githubusercontent.com/u/2030591?v=4","gravatar_id":"","url":"https://api.github.com/users/lvht","html_url":"https://github.com/lvht","followers_url":"https://api.github.com/users/lvht/followers","following_url":"https://api.github.com/users/lvht/following{/other_user}","gists_url":"https://api.github.com/users/lvht/gists{/gist_id}","starred_url":"https://api.github.com/users/lvht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lvht/subscriptions","organizations_url":"https://api.github.com/users/lvht/orgs","repos_url":"https://api.github.com/users/lvht/repos","events_url":"https://api.github.com/users/lvht/events{/privacy}","received_events_url":"https://api.github.com/users/lvht/received_events","type":"User","site_admin":false},"created_at":"2018-02-05T02:20:20Z","updated_at":"2018-02-05T02:20:20Z","author_association":"OWNER","body":"But `vim --noplugin a/b/c.txt` will not block."}}
{"actor":{"display_login":"lvht"}}