{"action":"opened","number":856,"pull_request":{"url":"https://api.github.com/repos/bling/vim-airline/pulls/856","id":46063264,"html_url":"https://github.com/bling/vim-airline/pull/856","diff_url":"https://github.com/bling/vim-airline/pull/856.diff","patch_url":"https://github.com/bling/vim-airline/pull/856.patch","issue_url":"https://api.github.com/repos/bling/vim-airline/issues/856","number":856,"state":"open","locked":false,"title":"Sweep tabline of unlisted buffers on BufLeave","user":{"login":"poppyschmo","id":12665556,"avatar_url":"https://avatars.githubusercontent.com/u/12665556?v=3","gravatar_id":"","url":"https://api.github.com/users/poppyschmo","html_url":"https://github.com/poppyschmo","followers_url":"https://api.github.com/users/poppyschmo/followers","following_url":"https://api.github.com/users/poppyschmo/following{/other_user}","gists_url":"https://api.github.com/users/poppyschmo/gists{/gist_id}","starred_url":"https://api.github.com/users/poppyschmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poppyschmo/subscriptions","organizations_url":"https://api.github.com/users/poppyschmo/orgs","repos_url":"https://api.github.com/users/poppyschmo/repos","events_url":"https://api.github.com/users/poppyschmo/events{/privacy}","received_events_url":"https://api.github.com/users/poppyschmo/received_events","type":"User","site_admin":false},"body":"This simply unlets `s:current_buffer_list` in `tabline/buflist.vim`, forcing `tabline#buflist#list()` to remake the buffer list from scratch when next invoked. (By the way, `cur` in `buflist#list()` is declared/assigned but never used.) Perhaps it's better to remove unlisted stragglers in a more surgical fashion (like with `remove()`). Regardless, such a wholesale approach should probably be tested for bottlenecks, since leaving buffers occurs more or less constantly over a given session. This, of course, assumes adding `BufLeave` doesn't break anything outright.","created_at":"2015-09-25T22:05:48Z","updated_at":"2015-09-25T22:05:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1b3c163d6d06a6271c2f18f96589af31960f60e9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bling/vim-airline/pulls/856/commits","review_comments_url":"https://api.github.com/repos/bling/vim-airline/pulls/856/comments","review_comment_url":"https://api.github.com/repos/bling/vim-airline/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bling/vim-airline/issues/856/comments","statuses_url":"https://api.github.com/repos/bling/vim-airline/statuses/a58b3cba555a0d72dba99025c827aed63b8bd7c6","head":{"label":"poppyschmo:bufsweep","ref":"bufsweep","sha":"a58b3cba555a0d72dba99025c827aed63b8bd7c6","user":{"login":"poppyschmo","id":12665556,"avatar_url":"https://avatars.githubusercontent.com/u/12665556?v=3","gravatar_id":"","url":"https://api.github.com/users/poppyschmo","html_url":"https://github.com/poppyschmo","followers_url":"https://api.github.com/users/poppyschmo/followers","following_url":"https://api.github.com/users/poppyschmo/following{/other_user}","gists_url":"https://api.github.com/users/poppyschmo/gists{/gist_id}","starred_url":"https://api.github.com/users/poppyschmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poppyschmo/subscriptions","organizations_url":"https://api.github.com/users/poppyschmo/orgs","repos_url":"https://api.github.com/users/poppyschmo/repos","events_url":"https://api.github.com/users/poppyschmo/events{/privacy}","received_events_url":"https://api.github.com/users/poppyschmo/received_events","type":"User","site_admin":false},"repo":{"id":43175016,"name":"vim-airline","full_name":"poppyschmo/vim-airline","owner":{"login":"poppyschmo","id":12665556,"avatar_url":"https://avatars.githubusercontent.com/u/12665556?v=3","gravatar_id":"","url":"https://api.github.com/users/poppyschmo","html_url":"https://github.com/poppyschmo","followers_url":"https://api.github.com/users/poppyschmo/followers","following_url":"https://api.github.com/users/poppyschmo/following{/other_user}","gists_url":"https://api.github.com/users/poppyschmo/gists{/gist_id}","starred_url":"https://api.github.com/users/poppyschmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poppyschmo/subscriptions","organizations_url":"https://api.github.com/users/poppyschmo/orgs","repos_url":"https://api.github.com/users/poppyschmo/repos","events_url":"https://api.github.com/users/poppyschmo/events{/privacy}","received_events_url":"https://api.github.com/users/poppyschmo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/poppyschmo/vim-airline","description":"lean & mean status/tabline for vim that's light as air","fork":true,"url":"https://api.github.com/repos/poppyschmo/vim-airline","forks_url":"https://api.github.com/repos/poppyschmo/vim-airline/forks","keys_url":"https://api.github.com/repos/poppyschmo/vim-airline/keys{/key_id}","collaborators_url":"https://api.github.com/repos/poppyschmo/vim-airline/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/poppyschmo/vim-airline/teams","hooks_url":"https://api.github.com/repos/poppyschmo/vim-airline/hooks","issue_events_url":"https://api.github.com/repos/poppyschmo/vim-airline/issues/events{/number}","events_url":"https://api.github.com/repos/poppyschmo/vim-airline/events","assignees_url":"https://api.github.com/repos/poppyschmo/vim-airline/assignees{/user}","branches_url":"https://api.github.com/repos/poppyschmo/vim-airline/branches{/branch}","tags_url":"https://api.github.com/repos/poppyschmo/vim-airline/tags","blobs_url":"https://api.github.com/repos/poppyschmo/vim-airline/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/poppyschmo/vim-airline/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/poppyschmo/vim-airline/git/refs{/sha}","trees_url":"https://api.github.com/repos/poppyschmo/vim-airline/git/trees{/sha}","statuses_url":"https://api.github.com/repos/poppyschmo/vim-airline/statuses/{sha}","languages_url":"https://api.github.com/repos/poppyschmo/vim-airline/languages","stargazers_url":"https://api.github.com/repos/poppyschmo/vim-airline/stargazers","contributors_url":"https://api.github.com/repos/poppyschmo/vim-airline/contributors","subscribers_url":"https://api.github.com/repos/poppyschmo/vim-airline/subscribers","subscription_url":"https://api.github.com/repos/poppyschmo/vim-airline/subscription","commits_url":"https://api.github.com/repos/poppyschmo/vim-airline/commits{/sha}","git_commits_url":"https://api.github.com/repos/poppyschmo/vim-airline/git/commits{/sha}","comments_url":"https://api.github.com/repos/poppyschmo/vim-airline/comments{/number}","issue_comment_url":"https://api.github.com/repos/poppyschmo/vim-airline/issues/comments{/number}","contents_url":"https://api.github.com/repos/poppyschmo/vim-airline/contents/{+path}","compare_url":"https://api.github.com/repos/poppyschmo/vim-airline/compare/{base}...{head}","merges_url":"https://api.github.com/repos/poppyschmo/vim-airline/merges","archive_url":"https://api.github.com/repos/poppyschmo/vim-airline/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/poppyschmo/vim-airline/downloads","issues_url":"https://api.github.com/repos/poppyschmo/vim-airline/issues{/number}","pulls_url":"https://api.github.com/repos/poppyschmo/vim-airline/pulls{/number}","milestones_url":"https://api.github.com/repos/poppyschmo/vim-airline/milestones{/number}","notifications_url":"https://api.github.com/repos/poppyschmo/vim-airline/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/poppyschmo/vim-airline/labels{/name}","releases_url":"https://api.github.com/repos/poppyschmo/vim-airline/releases{/id}","created_at":"2015-09-25T20:53:34Z","updated_at":"2015-09-25T20:53:35Z","pushed_at":"2015-09-25T21:29:10Z","git_url":"git://github.com/poppyschmo/vim-airline.git","ssh_url":"git@github.com:poppyschmo/vim-airline.git","clone_url":"https://github.com/poppyschmo/vim-airline.git","svn_url":"https://github.com/poppyschmo/vim-airline","homepage":"","size":4865,"stargazers_count":0,"watchers_count":0,"language":"VimL","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"bling:master","ref":"master","sha":"cdc6d98a09db60d3dda58815616f78338cbdaa9d","user":{"login":"bling","id":306502,"avatar_url":"https://avatars.githubusercontent.com/u/306502?v=3","gravatar_id":"","url":"https://api.github.com/users/bling","html_url":"https://github.com/bling","followers_url":"https://api.github.com/users/bling/followers","following_url":"https://api.github.com/users/bling/following{/other_user}","gists_url":"https://api.github.com/users/bling/gists{/gist_id}","starred_url":"https://api.github.com/users/bling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bling/subscriptions","organizations_url":"https://api.github.com/users/bling/orgs","repos_url":"https://api.github.com/users/bling/repos","events_url":"https://api.github.com/users/bling/events{/privacy}","received_events_url":"https://api.github.com/users/bling/received_events","type":"User","site_admin":false},"repo":{"id":11075527,"name":"vim-airline","full_name":"bling/vim-airline","owner":{"login":"bling","id":306502,"avatar_url":"https://avatars.githubusercontent.com/u/306502?v=3","gravatar_id":"","url":"https://api.github.com/users/bling","html_url":"https://github.com/bling","followers_url":"https://api.github.com/users/bling/followers","following_url":"https://api.github.com/users/bling/following{/other_user}","gists_url":"https://api.github.com/users/bling/gists{/gist_id}","starred_url":"https://api.github.com/users/bling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bling/subscriptions","organizations_url":"https://api.github.com/users/bling/orgs","repos_url":"https://api.github.com/users/bling/repos","events_url":"https://api.github.com/users/bling/events{/privacy}","received_events_url":"https://api.github.com/users/bling/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bling/vim-airline","description":"lean & mean status/tabline for vim that's light as air","fork":false,"url":"https://api.github.com/repos/bling/vim-airline","forks_url":"https://api.github.com/repos/bling/vim-airline/forks","keys_url":"https://api.github.com/repos/bling/vim-airline/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bling/vim-airline/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bling/vim-airline/teams","hooks_url":"https://api.github.com/repos/bling/vim-airline/hooks","issue_events_url":"https://api.github.com/repos/bling/vim-airline/issues/events{/number}","events_url":"https://api.github.com/repos/bling/vim-airline/events","assignees_url":"https://api.github.com/repos/bling/vim-airline/assignees{/user}","branches_url":"https://api.github.com/repos/bling/vim-airline/branches{/branch}","tags_url":"https://api.github.com/repos/bling/vim-airline/tags","blobs_url":"https://api.github.com/repos/bling/vim-airline/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bling/vim-airline/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bling/vim-airline/git/refs{/sha}","trees_url":"https://api.github.com/repos/bling/vim-airline/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bling/vim-airline/statuses/{sha}","languages_url":"https://api.github.com/repos/bling/vim-airline/languages","stargazers_url":"https://api.github.com/repos/bling/vim-airline/stargazers","contributors_url":"https://api.github.com/repos/bling/vim-airline/contributors","subscribers_url":"https://api.github.com/repos/bling/vim-airline/subscribers","subscription_url":"https://api.github.com/repos/bling/vim-airline/subscription","commits_url":"https://api.github.com/repos/bling/vim-airline/commits{/sha}","git_commits_url":"https://api.github.com/repos/bling/vim-airline/git/commits{/sha}","comments_url":"https://api.github.com/repos/bling/vim-airline/comments{/number}","issue_comment_url":"https://api.github.com/repos/bling/vim-airline/issues/comments{/number}","contents_url":"https://api.github.com/repos/bling/vim-airline/contents/{+path}","compare_url":"https://api.github.com/repos/bling/vim-airline/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bling/vim-airline/merges","archive_url":"https://api.github.com/repos/bling/vim-airline/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bling/vim-airline/downloads","issues_url":"https://api.github.com/repos/bling/vim-airline/issues{/number}","pulls_url":"https://api.github.com/repos/bling/vim-airline/pulls{/number}","milestones_url":"https://api.github.com/repos/bling/vim-airline/milestones{/number}","notifications_url":"https://api.github.com/repos/bling/vim-airline/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bling/vim-airline/labels{/name}","releases_url":"https://api.github.com/repos/bling/vim-airline/releases{/id}","created_at":"2013-06-30T18:49:56Z","updated_at":"2015-09-25T16:47:48Z","pushed_at":"2015-09-25T22:05:49Z","git_url":"git://github.com/bling/vim-airline.git","ssh_url":"git@github.com:bling/vim-airline.git","clone_url":"https://github.com/bling/vim-airline.git","svn_url":"https://github.com/bling/vim-airline","homepage":"","size":4865,"stargazers_count":5850,"watchers_count":5850,"language":"VimL","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":401,"mirror_url":null,"open_issues_count":146,"forks":401,"open_issues":146,"watchers":5850,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bling/vim-airline/pulls/856"},"html":{"href":"https://github.com/bling/vim-airline/pull/856"},"issue":{"href":"https://api.github.com/repos/bling/vim-airline/issues/856"},"comments":{"href":"https://api.github.com/repos/bling/vim-airline/issues/856/comments"},"review_comments":{"href":"https://api.github.com/repos/bling/vim-airline/pulls/856/comments"},"review_comment":{"href":"https://api.github.com/repos/bling/vim-airline/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bling/vim-airline/pulls/856/commits"},"statuses":{"href":"https://api.github.com/repos/bling/vim-airline/statuses/a58b3cba555a0d72dba99025c827aed63b8bd7c6"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}