{"action":"closed","number":3054,"pull_request":{"url":"https://api.github.com/repos/codemirror/CodeMirror/pulls/3054","id":28189438,"html_url":"https://github.com/codemirror/CodeMirror/pull/3054","diff_url":"https://github.com/codemirror/CodeMirror/pull/3054.diff","patch_url":"https://github.com/codemirror/CodeMirror/pull/3054.patch","issue_url":"https://api.github.com/repos/codemirror/CodeMirror/issues/3054","number":3054,"state":"closed","locked":false,"title":"Mobile branch: Fix for copying large chunks of text","user":{"login":"mihailik","id":4041967,"avatar_url":"https://avatars.githubusercontent.com/u/4041967?v=3","gravatar_id":"","url":"https://api.github.com/users/mihailik","html_url":"https://github.com/mihailik","followers_url":"https://api.github.com/users/mihailik/followers","following_url":"https://api.github.com/users/mihailik/following{/other_user}","gists_url":"https://api.github.com/users/mihailik/gists{/gist_id}","starred_url":"https://api.github.com/users/mihailik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mihailik/subscriptions","organizations_url":"https://api.github.com/users/mihailik/orgs","repos_url":"https://api.github.com/users/mihailik/repos","events_url":"https://api.github.com/users/mihailik/events{/privacy}","received_events_url":"https://api.github.com/users/mihailik/received_events","type":"User","site_admin":false},"body":"Selecting and copying a large chunk of text places a single dash into clipboard.\r\n\r\nThis is related to line 1285, where the input's content is trimmed for performance:\r\n\r\nhttps://github.com/codemirror/CodeMirror/blob/mobile/lib/codemirror.js#L1285\r\n\r\n    minimal = hasCopyEvent &&\r\n      (range.to().line - range.from().line > 100 || (selected = cm.getSelection()).length > 1000);\r\n    var content = minimal ? \"-\" : selected || cm.getSelection();\r\n\r\nThe problem is apparently a typo during refactoring/renaming from 'd' on the master branch to 'input' here.","created_at":"2015-01-28T12:25:51Z","updated_at":"2015-01-29T23:06:33Z","closed_at":"2015-01-29T23:06:33Z","merged_at":null,"merge_commit_sha":"7fdd57f8e0df62ffab04eb39e8a219a5c60ae2b2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/codemirror/CodeMirror/pulls/3054/commits","review_comments_url":"https://api.github.com/repos/codemirror/CodeMirror/pulls/3054/comments","review_comment_url":"https://api.github.com/repos/codemirror/CodeMirror/pulls/comments/{number}","comments_url":"https://api.github.com/repos/codemirror/CodeMirror/issues/3054/comments","statuses_url":"https://api.github.com/repos/codemirror/CodeMirror/statuses/ace5295af41db8de879b4fdddcb075421032382f","head":{"label":"mihailik:patch-1","ref":"patch-1","sha":"ace5295af41db8de879b4fdddcb075421032382f","user":{"login":"mihailik","id":4041967,"avatar_url":"https://avatars.githubusercontent.com/u/4041967?v=3","gravatar_id":"","url":"https://api.github.com/users/mihailik","html_url":"https://github.com/mihailik","followers_url":"https://api.github.com/users/mihailik/followers","following_url":"https://api.github.com/users/mihailik/following{/other_user}","gists_url":"https://api.github.com/users/mihailik/gists{/gist_id}","starred_url":"https://api.github.com/users/mihailik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mihailik/subscriptions","organizations_url":"https://api.github.com/users/mihailik/orgs","repos_url":"https://api.github.com/users/mihailik/repos","events_url":"https://api.github.com/users/mihailik/events{/privacy}","received_events_url":"https://api.github.com/users/mihailik/received_events","type":"User","site_admin":false},"repo":{"id":29966282,"name":"CodeMirror","full_name":"mihailik/CodeMirror","owner":{"login":"mihailik","id":4041967,"avatar_url":"https://avatars.githubusercontent.com/u/4041967?v=3","gravatar_id":"","url":"https://api.github.com/users/mihailik","html_url":"https://github.com/mihailik","followers_url":"https://api.github.com/users/mihailik/followers","following_url":"https://api.github.com/users/mihailik/following{/other_user}","gists_url":"https://api.github.com/users/mihailik/gists{/gist_id}","starred_url":"https://api.github.com/users/mihailik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mihailik/subscriptions","organizations_url":"https://api.github.com/users/mihailik/orgs","repos_url":"https://api.github.com/users/mihailik/repos","events_url":"https://api.github.com/users/mihailik/events{/privacy}","received_events_url":"https://api.github.com/users/mihailik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mihailik/CodeMirror","description":"In-browser code editor","fork":true,"url":"https://api.github.com/repos/mihailik/CodeMirror","forks_url":"https://api.github.com/repos/mihailik/CodeMirror/forks","keys_url":"https://api.github.com/repos/mihailik/CodeMirror/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mihailik/CodeMirror/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mihailik/CodeMirror/teams","hooks_url":"https://api.github.com/repos/mihailik/CodeMirror/hooks","issue_events_url":"https://api.github.com/repos/mihailik/CodeMirror/issues/events{/number}","events_url":"https://api.github.com/repos/mihailik/CodeMirror/events","assignees_url":"https://api.github.com/repos/mihailik/CodeMirror/assignees{/user}","branches_url":"https://api.github.com/repos/mihailik/CodeMirror/branches{/branch}","tags_url":"https://api.github.com/repos/mihailik/CodeMirror/tags","blobs_url":"https://api.github.com/repos/mihailik/CodeMirror/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mihailik/CodeMirror/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mihailik/CodeMirror/git/refs{/sha}","trees_url":"https://api.github.com/repos/mihailik/CodeMirror/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mihailik/CodeMirror/statuses/{sha}","languages_url":"https://api.github.com/repos/mihailik/CodeMirror/languages","stargazers_url":"https://api.github.com/repos/mihailik/CodeMirror/stargazers","contributors_url":"https://api.github.com/repos/mihailik/CodeMirror/contributors","subscribers_url":"https://api.github.com/repos/mihailik/CodeMirror/subscribers","subscription_url":"https://api.github.com/repos/mihailik/CodeMirror/subscription","commits_url":"https://api.github.com/repos/mihailik/CodeMirror/commits{/sha}","git_commits_url":"https://api.github.com/repos/mihailik/CodeMirror/git/commits{/sha}","comments_url":"https://api.github.com/repos/mihailik/CodeMirror/comments{/number}","issue_comment_url":"https://api.github.com/repos/mihailik/CodeMirror/issues/comments/{number}","contents_url":"https://api.github.com/repos/mihailik/CodeMirror/contents/{+path}","compare_url":"https://api.github.com/repos/mihailik/CodeMirror/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mihailik/CodeMirror/merges","archive_url":"https://api.github.com/repos/mihailik/CodeMirror/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mihailik/CodeMirror/downloads","issues_url":"https://api.github.com/repos/mihailik/CodeMirror/issues{/number}","pulls_url":"https://api.github.com/repos/mihailik/CodeMirror/pulls{/number}","milestones_url":"https://api.github.com/repos/mihailik/CodeMirror/milestones{/number}","notifications_url":"https://api.github.com/repos/mihailik/CodeMirror/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mihailik/CodeMirror/labels{/name}","releases_url":"https://api.github.com/repos/mihailik/CodeMirror/releases{/id}","created_at":"2015-01-28T12:21:03Z","updated_at":"2015-01-28T12:21:06Z","pushed_at":"2015-01-28T12:25:26Z","git_url":"git://github.com/mihailik/CodeMirror.git","ssh_url":"git@github.com:mihailik/CodeMirror.git","clone_url":"https://github.com/mihailik/CodeMirror.git","svn_url":"https://github.com/mihailik/CodeMirror","homepage":"http://codemirror.net/","size":30004,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"codemirror:mobile","ref":"mobile","sha":"675f07f7ea60cf72a5079424d4c06578907834ea","user":{"login":"codemirror","id":8876537,"avatar_url":"https://avatars.githubusercontent.com/u/8876537?v=3","gravatar_id":"","url":"https://api.github.com/users/codemirror","html_url":"https://github.com/codemirror","followers_url":"https://api.github.com/users/codemirror/followers","following_url":"https://api.github.com/users/codemirror/following{/other_user}","gists_url":"https://api.github.com/users/codemirror/gists{/gist_id}","starred_url":"https://api.github.com/users/codemirror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codemirror/subscriptions","organizations_url":"https://api.github.com/users/codemirror/orgs","repos_url":"https://api.github.com/users/codemirror/repos","events_url":"https://api.github.com/users/codemirror/events{/privacy}","received_events_url":"https://api.github.com/users/codemirror/received_events","type":"Organization","site_admin":false},"repo":{"id":1254497,"name":"CodeMirror","full_name":"codemirror/CodeMirror","owner":{"login":"codemirror","id":8876537,"avatar_url":"https://avatars.githubusercontent.com/u/8876537?v=3","gravatar_id":"","url":"https://api.github.com/users/codemirror","html_url":"https://github.com/codemirror","followers_url":"https://api.github.com/users/codemirror/followers","following_url":"https://api.github.com/users/codemirror/following{/other_user}","gists_url":"https://api.github.com/users/codemirror/gists{/gist_id}","starred_url":"https://api.github.com/users/codemirror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codemirror/subscriptions","organizations_url":"https://api.github.com/users/codemirror/orgs","repos_url":"https://api.github.com/users/codemirror/repos","events_url":"https://api.github.com/users/codemirror/events{/privacy}","received_events_url":"https://api.github.com/users/codemirror/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codemirror/CodeMirror","description":"In-browser code editor","fork":false,"url":"https://api.github.com/repos/codemirror/CodeMirror","forks_url":"https://api.github.com/repos/codemirror/CodeMirror/forks","keys_url":"https://api.github.com/repos/codemirror/CodeMirror/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codemirror/CodeMirror/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codemirror/CodeMirror/teams","hooks_url":"https://api.github.com/repos/codemirror/CodeMirror/hooks","issue_events_url":"https://api.github.com/repos/codemirror/CodeMirror/issues/events{/number}","events_url":"https://api.github.com/repos/codemirror/CodeMirror/events","assignees_url":"https://api.github.com/repos/codemirror/CodeMirror/assignees{/user}","branches_url":"https://api.github.com/repos/codemirror/CodeMirror/branches{/branch}","tags_url":"https://api.github.com/repos/codemirror/CodeMirror/tags","blobs_url":"https://api.github.com/repos/codemirror/CodeMirror/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codemirror/CodeMirror/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codemirror/CodeMirror/git/refs{/sha}","trees_url":"https://api.github.com/repos/codemirror/CodeMirror/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codemirror/CodeMirror/statuses/{sha}","languages_url":"https://api.github.com/repos/codemirror/CodeMirror/languages","stargazers_url":"https://api.github.com/repos/codemirror/CodeMirror/stargazers","contributors_url":"https://api.github.com/repos/codemirror/CodeMirror/contributors","subscribers_url":"https://api.github.com/repos/codemirror/CodeMirror/subscribers","subscription_url":"https://api.github.com/repos/codemirror/CodeMirror/subscription","commits_url":"https://api.github.com/repos/codemirror/CodeMirror/commits{/sha}","git_commits_url":"https://api.github.com/repos/codemirror/CodeMirror/git/commits{/sha}","comments_url":"https://api.github.com/repos/codemirror/CodeMirror/comments{/number}","issue_comment_url":"https://api.github.com/repos/codemirror/CodeMirror/issues/comments/{number}","contents_url":"https://api.github.com/repos/codemirror/CodeMirror/contents/{+path}","compare_url":"https://api.github.com/repos/codemirror/CodeMirror/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codemirror/CodeMirror/merges","archive_url":"https://api.github.com/repos/codemirror/CodeMirror/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codemirror/CodeMirror/downloads","issues_url":"https://api.github.com/repos/codemirror/CodeMirror/issues{/number}","pulls_url":"https://api.github.com/repos/codemirror/CodeMirror/pulls{/number}","milestones_url":"https://api.github.com/repos/codemirror/CodeMirror/milestones{/number}","notifications_url":"https://api.github.com/repos/codemirror/CodeMirror/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codemirror/CodeMirror/labels{/name}","releases_url":"https://api.github.com/repos/codemirror/CodeMirror/releases{/id}","created_at":"2011-01-14T13:44:03Z","updated_at":"2015-01-29T22:58:31Z","pushed_at":"2015-01-29T23:05:34Z","git_url":"git://github.com/codemirror/CodeMirror.git","ssh_url":"git@github.com:codemirror/CodeMirror.git","clone_url":"https://github.com/codemirror/CodeMirror.git","svn_url":"https://github.com/codemirror/CodeMirror","homepage":"http://codemirror.net/","size":30004,"stargazers_count":6031,"watchers_count":6031,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1553,"mirror_url":null,"open_issues_count":85,"forks":1553,"open_issues":85,"watchers":6031,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codemirror/CodeMirror/pulls/3054"},"html":{"href":"https://github.com/codemirror/CodeMirror/pull/3054"},"issue":{"href":"https://api.github.com/repos/codemirror/CodeMirror/issues/3054"},"comments":{"href":"https://api.github.com/repos/codemirror/CodeMirror/issues/3054/comments"},"review_comments":{"href":"https://api.github.com/repos/codemirror/CodeMirror/pulls/3054/comments"},"review_comment":{"href":"https://api.github.com/repos/codemirror/CodeMirror/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/codemirror/CodeMirror/pulls/3054/commits"},"statuses":{"href":"https://api.github.com/repos/codemirror/CodeMirror/statuses/ace5295af41db8de879b4fdddcb075421032382f"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":1,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}