{"action":"created","comment":{"url":"https://api.github.com/repos/alysov/fold-lines/pulls/comments/52143428","id":52143428,"diff_hunk":"@@ -7,24 +7,19 @@ module.exports = FoldLines =\n     @subscriptions = new CompositeDisposable\n \n     @subscriptions.add atom.workspace.observeTextEditors (editor) =>\n-      buffer = editor.getBuffer()\n-        \n+      foldsLayer = editor.displayBuffer.foldsMarkerLayer\n+\n       # Handle current folds.\n-      markers = buffer.findMarkers(editor.displayBuffer.getFoldMarkerAttributes())\n+      markers = foldsLayer.getMarkers()\n       @decorateFold(editor, marker) for marker in markers\n-      \n+\n       # Subscribe to all future folds.\n-      @subscriptions.add buffer.onDidCreateMarker (marker) =>\n-        @handleBufferMarkerCreated editor, marker\n+      @subscriptions.add foldsLayer.onDidCreateMarker (marker) =>\n+        @decorateFold editor, marker","path":"lib/fold-lines.coffee","position":18,"original_position":18,"commit_id":"dedddf4702db20b37fe73fb1f1400a921a50d30b","original_commit_id":"dedddf4702db20b37fe73fb1f1400a921a50d30b","user":{"login":"alysov","id":952604,"avatar_url":"https://avatars.githubusercontent.com/u/952604?v=3","gravatar_id":"","url":"https://api.github.com/users/alysov","html_url":"https://github.com/alysov","followers_url":"https://api.github.com/users/alysov/followers","following_url":"https://api.github.com/users/alysov/following{/other_user}","gists_url":"https://api.github.com/users/alysov/gists{/gist_id}","starred_url":"https://api.github.com/users/alysov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alysov/subscriptions","organizations_url":"https://api.github.com/users/alysov/orgs","repos_url":"https://api.github.com/users/alysov/repos","events_url":"https://api.github.com/users/alysov/events{/privacy}","received_events_url":"https://api.github.com/users/alysov/received_events","type":"User","site_admin":false},"body":"This sure makes things easier.","created_at":"2016-02-08T08:49:54Z","updated_at":"2016-02-08T08:49:54Z","html_url":"https://github.com/alysov/fold-lines/pull/2#discussion_r52143428","pull_request_url":"https://api.github.com/repos/alysov/fold-lines/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/alysov/fold-lines/pulls/comments/52143428"},"html":{"href":"https://github.com/alysov/fold-lines/pull/2#discussion_r52143428"},"pull_request":{"href":"https://api.github.com/repos/alysov/fold-lines/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/alysov/fold-lines/pulls/2","id":58531543,"html_url":"https://github.com/alysov/fold-lines/pull/2","diff_url":"https://github.com/alysov/fold-lines/pull/2.diff","patch_url":"https://github.com/alysov/fold-lines/pull/2.patch","issue_url":"https://api.github.com/repos/alysov/fold-lines/issues/2","number":2,"state":"open","locked":false,"title":"works on latest atom, fixes #1","user":{"login":"artemisart","id":9201969,"avatar_url":"https://avatars.githubusercontent.com/u/9201969?v=3","gravatar_id":"","url":"https://api.github.com/users/artemisart","html_url":"https://github.com/artemisart","followers_url":"https://api.github.com/users/artemisart/followers","following_url":"https://api.github.com/users/artemisart/following{/other_user}","gists_url":"https://api.github.com/users/artemisart/gists{/gist_id}","starred_url":"https://api.github.com/users/artemisart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artemisart/subscriptions","organizations_url":"https://api.github.com/users/artemisart/orgs","repos_url":"https://api.github.com/users/artemisart/repos","events_url":"https://api.github.com/users/artemisart/events{/privacy}","received_events_url":"https://api.github.com/users/artemisart/received_events","type":"User","site_admin":false},"body":null,"created_at":"2016-02-06T22:00:23Z","updated_at":"2016-02-08T08:49:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"28753c384a71cdcc7bf8a6c6381c4e296f5505e7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/alysov/fold-lines/pulls/2/commits","review_comments_url":"https://api.github.com/repos/alysov/fold-lines/pulls/2/comments","review_comment_url":"https://api.github.com/repos/alysov/fold-lines/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alysov/fold-lines/issues/2/comments","statuses_url":"https://api.github.com/repos/alysov/fold-lines/statuses/dedddf4702db20b37fe73fb1f1400a921a50d30b","head":{"label":"artemisart:patch-1","ref":"patch-1","sha":"dedddf4702db20b37fe73fb1f1400a921a50d30b","user":{"login":"artemisart","id":9201969,"avatar_url":"https://avatars.githubusercontent.com/u/9201969?v=3","gravatar_id":"","url":"https://api.github.com/users/artemisart","html_url":"https://github.com/artemisart","followers_url":"https://api.github.com/users/artemisart/followers","following_url":"https://api.github.com/users/artemisart/following{/other_user}","gists_url":"https://api.github.com/users/artemisart/gists{/gist_id}","starred_url":"https://api.github.com/users/artemisart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artemisart/subscriptions","organizations_url":"https://api.github.com/users/artemisart/orgs","repos_url":"https://api.github.com/users/artemisart/repos","events_url":"https://api.github.com/users/artemisart/events{/privacy}","received_events_url":"https://api.github.com/users/artemisart/received_events","type":"User","site_admin":false},"repo":{"id":51223638,"name":"fold-lines","full_name":"artemisart/fold-lines","owner":{"login":"artemisart","id":9201969,"avatar_url":"https://avatars.githubusercontent.com/u/9201969?v=3","gravatar_id":"","url":"https://api.github.com/users/artemisart","html_url":"https://github.com/artemisart","followers_url":"https://api.github.com/users/artemisart/followers","following_url":"https://api.github.com/users/artemisart/following{/other_user}","gists_url":"https://api.github.com/users/artemisart/gists{/gist_id}","starred_url":"https://api.github.com/users/artemisart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artemisart/subscriptions","organizations_url":"https://api.github.com/users/artemisart/orgs","repos_url":"https://api.github.com/users/artemisart/repos","events_url":"https://api.github.com/users/artemisart/events{/privacy}","received_events_url":"https://api.github.com/users/artemisart/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/artemisart/fold-lines","description":"Fold lines plugin for Atom","fork":true,"url":"https://api.github.com/repos/artemisart/fold-lines","forks_url":"https://api.github.com/repos/artemisart/fold-lines/forks","keys_url":"https://api.github.com/repos/artemisart/fold-lines/keys{/key_id}","collaborators_url":"https://api.github.com/repos/artemisart/fold-lines/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/artemisart/fold-lines/teams","hooks_url":"https://api.github.com/repos/artemisart/fold-lines/hooks","issue_events_url":"https://api.github.com/repos/artemisart/fold-lines/issues/events{/number}","events_url":"https://api.github.com/repos/artemisart/fold-lines/events","assignees_url":"https://api.github.com/repos/artemisart/fold-lines/assignees{/user}","branches_url":"https://api.github.com/repos/artemisart/fold-lines/branches{/branch}","tags_url":"https://api.github.com/repos/artemisart/fold-lines/tags","blobs_url":"https://api.github.com/repos/artemisart/fold-lines/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/artemisart/fold-lines/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/artemisart/fold-lines/git/refs{/sha}","trees_url":"https://api.github.com/repos/artemisart/fold-lines/git/trees{/sha}","statuses_url":"https://api.github.com/repos/artemisart/fold-lines/statuses/{sha}","languages_url":"https://api.github.com/repos/artemisart/fold-lines/languages","stargazers_url":"https://api.github.com/repos/artemisart/fold-lines/stargazers","contributors_url":"https://api.github.com/repos/artemisart/fold-lines/contributors","subscribers_url":"https://api.github.com/repos/artemisart/fold-lines/subscribers","subscription_url":"https://api.github.com/repos/artemisart/fold-lines/subscription","commits_url":"https://api.github.com/repos/artemisart/fold-lines/commits{/sha}","git_commits_url":"https://api.github.com/repos/artemisart/fold-lines/git/commits{/sha}","comments_url":"https://api.github.com/repos/artemisart/fold-lines/comments{/number}","issue_comment_url":"https://api.github.com/repos/artemisart/fold-lines/issues/comments{/number}","contents_url":"https://api.github.com/repos/artemisart/fold-lines/contents/{+path}","compare_url":"https://api.github.com/repos/artemisart/fold-lines/compare/{base}...{head}","merges_url":"https://api.github.com/repos/artemisart/fold-lines/merges","archive_url":"https://api.github.com/repos/artemisart/fold-lines/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/artemisart/fold-lines/downloads","issues_url":"https://api.github.com/repos/artemisart/fold-lines/issues{/number}","pulls_url":"https://api.github.com/repos/artemisart/fold-lines/pulls{/number}","milestones_url":"https://api.github.com/repos/artemisart/fold-lines/milestones{/number}","notifications_url":"https://api.github.com/repos/artemisart/fold-lines/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/artemisart/fold-lines/labels{/name}","releases_url":"https://api.github.com/repos/artemisart/fold-lines/releases{/id}","deployments_url":"https://api.github.com/repos/artemisart/fold-lines/deployments","created_at":"2016-02-06T21:46:45Z","updated_at":"2016-02-06T21:46:46Z","pushed_at":"2016-02-06T22:00:00Z","git_url":"git://github.com/artemisart/fold-lines.git","ssh_url":"git@github.com:artemisart/fold-lines.git","clone_url":"https://github.com/artemisart/fold-lines.git","svn_url":"https://github.com/artemisart/fold-lines","homepage":"","size":4,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","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":"alysov:master","ref":"master","sha":"674fcb874af09ce89a7f67d2d4b08cba2c81429d","user":{"login":"alysov","id":952604,"avatar_url":"https://avatars.githubusercontent.com/u/952604?v=3","gravatar_id":"","url":"https://api.github.com/users/alysov","html_url":"https://github.com/alysov","followers_url":"https://api.github.com/users/alysov/followers","following_url":"https://api.github.com/users/alysov/following{/other_user}","gists_url":"https://api.github.com/users/alysov/gists{/gist_id}","starred_url":"https://api.github.com/users/alysov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alysov/subscriptions","organizations_url":"https://api.github.com/users/alysov/orgs","repos_url":"https://api.github.com/users/alysov/repos","events_url":"https://api.github.com/users/alysov/events{/privacy}","received_events_url":"https://api.github.com/users/alysov/received_events","type":"User","site_admin":false},"repo":{"id":42072804,"name":"fold-lines","full_name":"alysov/fold-lines","owner":{"login":"alysov","id":952604,"avatar_url":"https://avatars.githubusercontent.com/u/952604?v=3","gravatar_id":"","url":"https://api.github.com/users/alysov","html_url":"https://github.com/alysov","followers_url":"https://api.github.com/users/alysov/followers","following_url":"https://api.github.com/users/alysov/following{/other_user}","gists_url":"https://api.github.com/users/alysov/gists{/gist_id}","starred_url":"https://api.github.com/users/alysov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alysov/subscriptions","organizations_url":"https://api.github.com/users/alysov/orgs","repos_url":"https://api.github.com/users/alysov/repos","events_url":"https://api.github.com/users/alysov/events{/privacy}","received_events_url":"https://api.github.com/users/alysov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alysov/fold-lines","description":"Fold lines plugin for Atom","fork":false,"url":"https://api.github.com/repos/alysov/fold-lines","forks_url":"https://api.github.com/repos/alysov/fold-lines/forks","keys_url":"https://api.github.com/repos/alysov/fold-lines/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alysov/fold-lines/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alysov/fold-lines/teams","hooks_url":"https://api.github.com/repos/alysov/fold-lines/hooks","issue_events_url":"https://api.github.com/repos/alysov/fold-lines/issues/events{/number}","events_url":"https://api.github.com/repos/alysov/fold-lines/events","assignees_url":"https://api.github.com/repos/alysov/fold-lines/assignees{/user}","branches_url":"https://api.github.com/repos/alysov/fold-lines/branches{/branch}","tags_url":"https://api.github.com/repos/alysov/fold-lines/tags","blobs_url":"https://api.github.com/repos/alysov/fold-lines/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alysov/fold-lines/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alysov/fold-lines/git/refs{/sha}","trees_url":"https://api.github.com/repos/alysov/fold-lines/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alysov/fold-lines/statuses/{sha}","languages_url":"https://api.github.com/repos/alysov/fold-lines/languages","stargazers_url":"https://api.github.com/repos/alysov/fold-lines/stargazers","contributors_url":"https://api.github.com/repos/alysov/fold-lines/contributors","subscribers_url":"https://api.github.com/repos/alysov/fold-lines/subscribers","subscription_url":"https://api.github.com/repos/alysov/fold-lines/subscription","commits_url":"https://api.github.com/repos/alysov/fold-lines/commits{/sha}","git_commits_url":"https://api.github.com/repos/alysov/fold-lines/git/commits{/sha}","comments_url":"https://api.github.com/repos/alysov/fold-lines/comments{/number}","issue_comment_url":"https://api.github.com/repos/alysov/fold-lines/issues/comments{/number}","contents_url":"https://api.github.com/repos/alysov/fold-lines/contents/{+path}","compare_url":"https://api.github.com/repos/alysov/fold-lines/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alysov/fold-lines/merges","archive_url":"https://api.github.com/repos/alysov/fold-lines/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alysov/fold-lines/downloads","issues_url":"https://api.github.com/repos/alysov/fold-lines/issues{/number}","pulls_url":"https://api.github.com/repos/alysov/fold-lines/pulls{/number}","milestones_url":"https://api.github.com/repos/alysov/fold-lines/milestones{/number}","notifications_url":"https://api.github.com/repos/alysov/fold-lines/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alysov/fold-lines/labels{/name}","releases_url":"https://api.github.com/repos/alysov/fold-lines/releases{/id}","deployments_url":"https://api.github.com/repos/alysov/fold-lines/deployments","created_at":"2015-09-07T20:19:12Z","updated_at":"2015-09-07T20:23:01Z","pushed_at":"2016-02-06T22:00:24Z","git_url":"git://github.com/alysov/fold-lines.git","ssh_url":"git@github.com:alysov/fold-lines.git","clone_url":"https://github.com/alysov/fold-lines.git","svn_url":"https://github.com/alysov/fold-lines","homepage":"","size":152,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alysov/fold-lines/pulls/2"},"html":{"href":"https://github.com/alysov/fold-lines/pull/2"},"issue":{"href":"https://api.github.com/repos/alysov/fold-lines/issues/2"},"comments":{"href":"https://api.github.com/repos/alysov/fold-lines/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/alysov/fold-lines/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/alysov/fold-lines/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alysov/fold-lines/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/alysov/fold-lines/statuses/dedddf4702db20b37fe73fb1f1400a921a50d30b"}}}}