{"action":"created","comment":{"url":"https://api.github.com/repos/neovim/neovim/pulls/comments/49277877","id":49277877,"diff_hunk":"@@ -6260,75 +6282,70 @@ int trigger_cursorhold(void)\n       && !ins_compl_active()\n       ) {\n     state = get_real_state();\n-    if (state == NORMAL_BUSY || (state & INSERT) != 0)\n-      return TRUE;\n+    if (state == NORMAL_BUSY || (state & INSERT) != 0) {\n+      return true;\n+    }\n   }\n-  return FALSE;\n+  return false;\n }\n \n-/*\n- * Return TRUE when there is a CursorMoved autocommand defined.\n- */\n-int has_cursormoved(void)\n+/// Return true when there is a CursorMoved autocommand defined.","path":"src/nvim/fileio.c","position":441,"original_position":441,"commit_id":"c2d15171dbcfc860b9634d353f1a011f0c2ca875","original_commit_id":"c2d15171dbcfc860b9634d353f1a011f0c2ca875","user":{"login":"bfredl","id":1363104,"avatar_url":"https://avatars.githubusercontent.com/u/1363104?v=3","gravatar_id":"","url":"https://api.github.com/users/bfredl","html_url":"https://github.com/bfredl","followers_url":"https://api.github.com/users/bfredl/followers","following_url":"https://api.github.com/users/bfredl/following{/other_user}","gists_url":"https://api.github.com/users/bfredl/gists{/gist_id}","starred_url":"https://api.github.com/users/bfredl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bfredl/subscriptions","organizations_url":"https://api.github.com/users/bfredl/orgs","repos_url":"https://api.github.com/users/bfredl/repos","events_url":"https://api.github.com/users/bfredl/events{/privacy}","received_events_url":"https://api.github.com/users/bfredl/received_events","type":"User","site_admin":false},"body":"It might be a change for a later PR, but why not\r\n```\r\nboll has_event(int event)\r\n{\r\n  return first_autopat[event] != NULL;\r\n}\r\n```\r\ninstead of these 6 functions","created_at":"2016-01-10T16:26:07Z","updated_at":"2016-01-10T16:26:07Z","html_url":"https://github.com/neovim/neovim/pull/3967#discussion_r49277877","pull_request_url":"https://api.github.com/repos/neovim/neovim/pulls/3967","_links":{"self":{"href":"https://api.github.com/repos/neovim/neovim/pulls/comments/49277877"},"html":{"href":"https://github.com/neovim/neovim/pull/3967#discussion_r49277877"},"pull_request":{"href":"https://api.github.com/repos/neovim/neovim/pulls/3967"}}},"pull_request":{"url":"https://api.github.com/repos/neovim/neovim/pulls/3967","id":55531781,"html_url":"https://github.com/neovim/neovim/pull/3967","diff_url":"https://github.com/neovim/neovim/pull/3967.diff","patch_url":"https://github.com/neovim/neovim/pull/3967.patch","issue_url":"https://api.github.com/repos/neovim/neovim/issues/3967","number":3967,"state":"open","locked":false,"title":"[RFC] Change return type to bool in fileio.c (adoption of PR 3698)","user":{"login":"cacplate","id":5625989,"avatar_url":"https://avatars.githubusercontent.com/u/5625989?v=3","gravatar_id":"","url":"https://api.github.com/users/cacplate","html_url":"https://github.com/cacplate","followers_url":"https://api.github.com/users/cacplate/followers","following_url":"https://api.github.com/users/cacplate/following{/other_user}","gists_url":"https://api.github.com/users/cacplate/gists{/gist_id}","starred_url":"https://api.github.com/users/cacplate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cacplate/subscriptions","organizations_url":"https://api.github.com/users/cacplate/orgs","repos_url":"https://api.github.com/users/cacplate/repos","events_url":"https://api.github.com/users/cacplate/events{/privacy}","received_events_url":"https://api.github.com/users/cacplate/received_events","type":"User","site_admin":false},"body":"@ZyX-I @justinmk as discussed in #3698. I made the necessary changes from the comments.","created_at":"2016-01-09T01:54:55Z","updated_at":"2016-01-10T16:26:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a75a3cb3c593368ada8f6271a6cccd9473430b8f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/neovim/neovim/pulls/3967/commits","review_comments_url":"https://api.github.com/repos/neovim/neovim/pulls/3967/comments","review_comment_url":"https://api.github.com/repos/neovim/neovim/pulls/comments{/number}","comments_url":"https://api.github.com/repos/neovim/neovim/issues/3967/comments","statuses_url":"https://api.github.com/repos/neovim/neovim/statuses/c2d15171dbcfc860b9634d353f1a011f0c2ca875","head":{"label":"cacplate:pr-3698","ref":"pr-3698","sha":"c2d15171dbcfc860b9634d353f1a011f0c2ca875","user":{"login":"cacplate","id":5625989,"avatar_url":"https://avatars.githubusercontent.com/u/5625989?v=3","gravatar_id":"","url":"https://api.github.com/users/cacplate","html_url":"https://github.com/cacplate","followers_url":"https://api.github.com/users/cacplate/followers","following_url":"https://api.github.com/users/cacplate/following{/other_user}","gists_url":"https://api.github.com/users/cacplate/gists{/gist_id}","starred_url":"https://api.github.com/users/cacplate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cacplate/subscriptions","organizations_url":"https://api.github.com/users/cacplate/orgs","repos_url":"https://api.github.com/users/cacplate/repos","events_url":"https://api.github.com/users/cacplate/events{/privacy}","received_events_url":"https://api.github.com/users/cacplate/received_events","type":"User","site_admin":false},"repo":{"id":46238435,"name":"neovim","full_name":"cacplate/neovim","owner":{"login":"cacplate","id":5625989,"avatar_url":"https://avatars.githubusercontent.com/u/5625989?v=3","gravatar_id":"","url":"https://api.github.com/users/cacplate","html_url":"https://github.com/cacplate","followers_url":"https://api.github.com/users/cacplate/followers","following_url":"https://api.github.com/users/cacplate/following{/other_user}","gists_url":"https://api.github.com/users/cacplate/gists{/gist_id}","starred_url":"https://api.github.com/users/cacplate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cacplate/subscriptions","organizations_url":"https://api.github.com/users/cacplate/orgs","repos_url":"https://api.github.com/users/cacplate/repos","events_url":"https://api.github.com/users/cacplate/events{/privacy}","received_events_url":"https://api.github.com/users/cacplate/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cacplate/neovim","description":"Vim-fork focused on extensibility and agility. Consider helping sustain Neovim development! ","fork":true,"url":"https://api.github.com/repos/cacplate/neovim","forks_url":"https://api.github.com/repos/cacplate/neovim/forks","keys_url":"https://api.github.com/repos/cacplate/neovim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cacplate/neovim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cacplate/neovim/teams","hooks_url":"https://api.github.com/repos/cacplate/neovim/hooks","issue_events_url":"https://api.github.com/repos/cacplate/neovim/issues/events{/number}","events_url":"https://api.github.com/repos/cacplate/neovim/events","assignees_url":"https://api.github.com/repos/cacplate/neovim/assignees{/user}","branches_url":"https://api.github.com/repos/cacplate/neovim/branches{/branch}","tags_url":"https://api.github.com/repos/cacplate/neovim/tags","blobs_url":"https://api.github.com/repos/cacplate/neovim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cacplate/neovim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cacplate/neovim/git/refs{/sha}","trees_url":"https://api.github.com/repos/cacplate/neovim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cacplate/neovim/statuses/{sha}","languages_url":"https://api.github.com/repos/cacplate/neovim/languages","stargazers_url":"https://api.github.com/repos/cacplate/neovim/stargazers","contributors_url":"https://api.github.com/repos/cacplate/neovim/contributors","subscribers_url":"https://api.github.com/repos/cacplate/neovim/subscribers","subscription_url":"https://api.github.com/repos/cacplate/neovim/subscription","commits_url":"https://api.github.com/repos/cacplate/neovim/commits{/sha}","git_commits_url":"https://api.github.com/repos/cacplate/neovim/git/commits{/sha}","comments_url":"https://api.github.com/repos/cacplate/neovim/comments{/number}","issue_comment_url":"https://api.github.com/repos/cacplate/neovim/issues/comments{/number}","contents_url":"https://api.github.com/repos/cacplate/neovim/contents/{+path}","compare_url":"https://api.github.com/repos/cacplate/neovim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cacplate/neovim/merges","archive_url":"https://api.github.com/repos/cacplate/neovim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cacplate/neovim/downloads","issues_url":"https://api.github.com/repos/cacplate/neovim/issues{/number}","pulls_url":"https://api.github.com/repos/cacplate/neovim/pulls{/number}","milestones_url":"https://api.github.com/repos/cacplate/neovim/milestones{/number}","notifications_url":"https://api.github.com/repos/cacplate/neovim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cacplate/neovim/labels{/name}","releases_url":"https://api.github.com/repos/cacplate/neovim/releases{/id}","created_at":"2015-11-15T22:17:29Z","updated_at":"2015-11-25T03:25:18Z","pushed_at":"2016-01-10T08:08:00Z","git_url":"git://github.com/cacplate/neovim.git","ssh_url":"git@github.com:cacplate/neovim.git","clone_url":"https://github.com/cacplate/neovim.git","svn_url":"https://github.com/cacplate/neovim","homepage":"https://salt.bountysource.com/teams/neovim","size":35054,"stargazers_count":0,"watchers_count":0,"language":"VimL","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"neovim:master","ref":"master","sha":"57cfb95758d8a7a86c7f7751373ad0b5b1ce09f8","user":{"login":"neovim","id":6471485,"avatar_url":"https://avatars.githubusercontent.com/u/6471485?v=3","gravatar_id":"","url":"https://api.github.com/users/neovim","html_url":"https://github.com/neovim","followers_url":"https://api.github.com/users/neovim/followers","following_url":"https://api.github.com/users/neovim/following{/other_user}","gists_url":"https://api.github.com/users/neovim/gists{/gist_id}","starred_url":"https://api.github.com/users/neovim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neovim/subscriptions","organizations_url":"https://api.github.com/users/neovim/orgs","repos_url":"https://api.github.com/users/neovim/repos","events_url":"https://api.github.com/users/neovim/events{/privacy}","received_events_url":"https://api.github.com/users/neovim/received_events","type":"Organization","site_admin":false},"repo":{"id":16408992,"name":"neovim","full_name":"neovim/neovim","owner":{"login":"neovim","id":6471485,"avatar_url":"https://avatars.githubusercontent.com/u/6471485?v=3","gravatar_id":"","url":"https://api.github.com/users/neovim","html_url":"https://github.com/neovim","followers_url":"https://api.github.com/users/neovim/followers","following_url":"https://api.github.com/users/neovim/following{/other_user}","gists_url":"https://api.github.com/users/neovim/gists{/gist_id}","starred_url":"https://api.github.com/users/neovim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neovim/subscriptions","organizations_url":"https://api.github.com/users/neovim/orgs","repos_url":"https://api.github.com/users/neovim/repos","events_url":"https://api.github.com/users/neovim/events{/privacy}","received_events_url":"https://api.github.com/users/neovim/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/neovim/neovim","description":"Vim-fork focused on extensibility and agility. Consider helping sustain Neovim development! ","fork":false,"url":"https://api.github.com/repos/neovim/neovim","forks_url":"https://api.github.com/repos/neovim/neovim/forks","keys_url":"https://api.github.com/repos/neovim/neovim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/neovim/neovim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/neovim/neovim/teams","hooks_url":"https://api.github.com/repos/neovim/neovim/hooks","issue_events_url":"https://api.github.com/repos/neovim/neovim/issues/events{/number}","events_url":"https://api.github.com/repos/neovim/neovim/events","assignees_url":"https://api.github.com/repos/neovim/neovim/assignees{/user}","branches_url":"https://api.github.com/repos/neovim/neovim/branches{/branch}","tags_url":"https://api.github.com/repos/neovim/neovim/tags","blobs_url":"https://api.github.com/repos/neovim/neovim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/neovim/neovim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/neovim/neovim/git/refs{/sha}","trees_url":"https://api.github.com/repos/neovim/neovim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/neovim/neovim/statuses/{sha}","languages_url":"https://api.github.com/repos/neovim/neovim/languages","stargazers_url":"https://api.github.com/repos/neovim/neovim/stargazers","contributors_url":"https://api.github.com/repos/neovim/neovim/contributors","subscribers_url":"https://api.github.com/repos/neovim/neovim/subscribers","subscription_url":"https://api.github.com/repos/neovim/neovim/subscription","commits_url":"https://api.github.com/repos/neovim/neovim/commits{/sha}","git_commits_url":"https://api.github.com/repos/neovim/neovim/git/commits{/sha}","comments_url":"https://api.github.com/repos/neovim/neovim/comments{/number}","issue_comment_url":"https://api.github.com/repos/neovim/neovim/issues/comments{/number}","contents_url":"https://api.github.com/repos/neovim/neovim/contents/{+path}","compare_url":"https://api.github.com/repos/neovim/neovim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/neovim/neovim/merges","archive_url":"https://api.github.com/repos/neovim/neovim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/neovim/neovim/downloads","issues_url":"https://api.github.com/repos/neovim/neovim/issues{/number}","pulls_url":"https://api.github.com/repos/neovim/neovim/pulls{/number}","milestones_url":"https://api.github.com/repos/neovim/neovim/milestones{/number}","notifications_url":"https://api.github.com/repos/neovim/neovim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/neovim/neovim/labels{/name}","releases_url":"https://api.github.com/repos/neovim/neovim/releases{/id}","created_at":"2014-01-31T13:39:22Z","updated_at":"2016-01-10T15:24:06Z","pushed_at":"2016-01-10T16:23:33Z","git_url":"git://github.com/neovim/neovim.git","ssh_url":"git@github.com:neovim/neovim.git","clone_url":"https://github.com/neovim/neovim.git","svn_url":"https://github.com/neovim/neovim","homepage":"https://salt.bountysource.com/teams/neovim","size":56307,"stargazers_count":16784,"watchers_count":16784,"language":"VimL","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1175,"mirror_url":null,"open_issues_count":623,"forks":1175,"open_issues":623,"watchers":16784,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/neovim/neovim/pulls/3967"},"html":{"href":"https://github.com/neovim/neovim/pull/3967"},"issue":{"href":"https://api.github.com/repos/neovim/neovim/issues/3967"},"comments":{"href":"https://api.github.com/repos/neovim/neovim/issues/3967/comments"},"review_comments":{"href":"https://api.github.com/repos/neovim/neovim/pulls/3967/comments"},"review_comment":{"href":"https://api.github.com/repos/neovim/neovim/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/neovim/neovim/pulls/3967/commits"},"statuses":{"href":"https://api.github.com/repos/neovim/neovim/statuses/c2d15171dbcfc860b9634d353f1a011f0c2ca875"}}}}