{"action":"created","comment":{"url":"https://api.github.com/repos/The-Compiler/qutebrowser/pulls/comments/50424958","id":50424958,"diff_hunk":"@@ -524,8 +524,15 @@ def incdec_number(url, incdec, segments=None):\n             val += 1\n         else:\n             raise ValueError(\"Invalid value {} for indec!\".format(incdec))\n-        new_value = ''.join([pre, str(val), post])\n+        if zeroes:\n+            if len(number) < len(str(val)):\n+                zeroes = zeroes[1:]\n+            if len(number) > len(str(val)):","path":"qutebrowser/utils/urlutils.py","position":22,"original_position":22,"commit_id":"1ecccc1133dffa693bb782c51d8d039e376f2a2a","original_commit_id":"1ecccc1133dffa693bb782c51d8d039e376f2a2a","user":{"login":"The-Compiler","id":625793,"avatar_url":"https://avatars.githubusercontent.com/u/625793?v=3","gravatar_id":"","url":"https://api.github.com/users/The-Compiler","html_url":"https://github.com/The-Compiler","followers_url":"https://api.github.com/users/The-Compiler/followers","following_url":"https://api.github.com/users/The-Compiler/following{/other_user}","gists_url":"https://api.github.com/users/The-Compiler/gists{/gist_id}","starred_url":"https://api.github.com/users/The-Compiler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/The-Compiler/subscriptions","organizations_url":"https://api.github.com/users/The-Compiler/orgs","repos_url":"https://api.github.com/users/The-Compiler/repos","events_url":"https://api.github.com/users/The-Compiler/events{/privacy}","received_events_url":"https://api.github.com/users/The-Compiler/received_events","type":"User","site_admin":false},"body":"please make this an `elif` since those are mutually exclusive anyways.","created_at":"2016-01-21T16:33:57Z","updated_at":"2016-01-21T16:33:57Z","html_url":"https://github.com/The-Compiler/qutebrowser/pull/1253#discussion_r50424958","pull_request_url":"https://api.github.com/repos/The-Compiler/qutebrowser/pulls/1253","_links":{"self":{"href":"https://api.github.com/repos/The-Compiler/qutebrowser/pulls/comments/50424958"},"html":{"href":"https://github.com/The-Compiler/qutebrowser/pull/1253#discussion_r50424958"},"pull_request":{"href":"https://api.github.com/repos/The-Compiler/qutebrowser/pulls/1253"}}},"pull_request":{"url":"https://api.github.com/repos/The-Compiler/qutebrowser/pulls/1253","id":56522176,"html_url":"https://github.com/The-Compiler/qutebrowser/pull/1253","diff_url":"https://github.com/The-Compiler/qutebrowser/pull/1253.diff","patch_url":"https://github.com/The-Compiler/qutebrowser/pull/1253.patch","issue_url":"https://api.github.com/repos/The-Compiler/qutebrowser/issues/1253","number":1253,"state":"open","locked":false,"title":"Include leading zeroes in URL increment/decrement","user":{"login":"mikeri","id":4218405,"avatar_url":"https://avatars.githubusercontent.com/u/4218405?v=3","gravatar_id":"","url":"https://api.github.com/users/mikeri","html_url":"https://github.com/mikeri","followers_url":"https://api.github.com/users/mikeri/followers","following_url":"https://api.github.com/users/mikeri/following{/other_user}","gists_url":"https://api.github.com/users/mikeri/gists{/gist_id}","starred_url":"https://api.github.com/users/mikeri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikeri/subscriptions","organizations_url":"https://api.github.com/users/mikeri/orgs","repos_url":"https://api.github.com/users/mikeri/repos","events_url":"https://api.github.com/users/mikeri/events{/privacy}","received_events_url":"https://api.github.com/users/mikeri/received_events","type":"User","site_admin":false},"body":"\n\n<!-- Reviewable:start -->\n[<img src=\"https://reviewable.io/review_button.png\" height=40 alt=\"Review on Reviewable\"/>](https://reviewable.io/reviews/the-compiler/qutebrowser/1253)\n<!-- Reviewable:end -->\n","created_at":"2016-01-19T20:40:06Z","updated_at":"2016-01-21T16:33:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"12f10a1434fbe727649cc6b2002a10f9fef74ae0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/The-Compiler/qutebrowser/pulls/1253/commits","review_comments_url":"https://api.github.com/repos/The-Compiler/qutebrowser/pulls/1253/comments","review_comment_url":"https://api.github.com/repos/The-Compiler/qutebrowser/pulls/comments{/number}","comments_url":"https://api.github.com/repos/The-Compiler/qutebrowser/issues/1253/comments","statuses_url":"https://api.github.com/repos/The-Compiler/qutebrowser/statuses/1ecccc1133dffa693bb782c51d8d039e376f2a2a","head":{"label":"mikeri:master","ref":"master","sha":"1ecccc1133dffa693bb782c51d8d039e376f2a2a","user":{"login":"mikeri","id":4218405,"avatar_url":"https://avatars.githubusercontent.com/u/4218405?v=3","gravatar_id":"","url":"https://api.github.com/users/mikeri","html_url":"https://github.com/mikeri","followers_url":"https://api.github.com/users/mikeri/followers","following_url":"https://api.github.com/users/mikeri/following{/other_user}","gists_url":"https://api.github.com/users/mikeri/gists{/gist_id}","starred_url":"https://api.github.com/users/mikeri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikeri/subscriptions","organizations_url":"https://api.github.com/users/mikeri/orgs","repos_url":"https://api.github.com/users/mikeri/repos","events_url":"https://api.github.com/users/mikeri/events{/privacy}","received_events_url":"https://api.github.com/users/mikeri/received_events","type":"User","site_admin":false},"repo":{"id":49981235,"name":"qutebrowser","full_name":"mikeri/qutebrowser","owner":{"login":"mikeri","id":4218405,"avatar_url":"https://avatars.githubusercontent.com/u/4218405?v=3","gravatar_id":"","url":"https://api.github.com/users/mikeri","html_url":"https://github.com/mikeri","followers_url":"https://api.github.com/users/mikeri/followers","following_url":"https://api.github.com/users/mikeri/following{/other_user}","gists_url":"https://api.github.com/users/mikeri/gists{/gist_id}","starred_url":"https://api.github.com/users/mikeri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikeri/subscriptions","organizations_url":"https://api.github.com/users/mikeri/orgs","repos_url":"https://api.github.com/users/mikeri/repos","events_url":"https://api.github.com/users/mikeri/events{/privacy}","received_events_url":"https://api.github.com/users/mikeri/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mikeri/qutebrowser","description":"A keyboard-driven, vim-like browser based on PyQt5 and QtWebKit.","fork":true,"url":"https://api.github.com/repos/mikeri/qutebrowser","forks_url":"https://api.github.com/repos/mikeri/qutebrowser/forks","keys_url":"https://api.github.com/repos/mikeri/qutebrowser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mikeri/qutebrowser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mikeri/qutebrowser/teams","hooks_url":"https://api.github.com/repos/mikeri/qutebrowser/hooks","issue_events_url":"https://api.github.com/repos/mikeri/qutebrowser/issues/events{/number}","events_url":"https://api.github.com/repos/mikeri/qutebrowser/events","assignees_url":"https://api.github.com/repos/mikeri/qutebrowser/assignees{/user}","branches_url":"https://api.github.com/repos/mikeri/qutebrowser/branches{/branch}","tags_url":"https://api.github.com/repos/mikeri/qutebrowser/tags","blobs_url":"https://api.github.com/repos/mikeri/qutebrowser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mikeri/qutebrowser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mikeri/qutebrowser/git/refs{/sha}","trees_url":"https://api.github.com/repos/mikeri/qutebrowser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mikeri/qutebrowser/statuses/{sha}","languages_url":"https://api.github.com/repos/mikeri/qutebrowser/languages","stargazers_url":"https://api.github.com/repos/mikeri/qutebrowser/stargazers","contributors_url":"https://api.github.com/repos/mikeri/qutebrowser/contributors","subscribers_url":"https://api.github.com/repos/mikeri/qutebrowser/subscribers","subscription_url":"https://api.github.com/repos/mikeri/qutebrowser/subscription","commits_url":"https://api.github.com/repos/mikeri/qutebrowser/commits{/sha}","git_commits_url":"https://api.github.com/repos/mikeri/qutebrowser/git/commits{/sha}","comments_url":"https://api.github.com/repos/mikeri/qutebrowser/comments{/number}","issue_comment_url":"https://api.github.com/repos/mikeri/qutebrowser/issues/comments{/number}","contents_url":"https://api.github.com/repos/mikeri/qutebrowser/contents/{+path}","compare_url":"https://api.github.com/repos/mikeri/qutebrowser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mikeri/qutebrowser/merges","archive_url":"https://api.github.com/repos/mikeri/qutebrowser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mikeri/qutebrowser/downloads","issues_url":"https://api.github.com/repos/mikeri/qutebrowser/issues{/number}","pulls_url":"https://api.github.com/repos/mikeri/qutebrowser/pulls{/number}","milestones_url":"https://api.github.com/repos/mikeri/qutebrowser/milestones{/number}","notifications_url":"https://api.github.com/repos/mikeri/qutebrowser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mikeri/qutebrowser/labels{/name}","releases_url":"https://api.github.com/repos/mikeri/qutebrowser/releases{/id}","created_at":"2016-01-19T20:34:05Z","updated_at":"2016-01-19T20:34:07Z","pushed_at":"2016-01-21T16:17:20Z","git_url":"git://github.com/mikeri/qutebrowser.git","ssh_url":"git@github.com:mikeri/qutebrowser.git","clone_url":"https://github.com/mikeri/qutebrowser.git","svn_url":"https://github.com/mikeri/qutebrowser","homepage":null,"size":12367,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"The-Compiler:master","ref":"master","sha":"eb276df8767b23b0073481be9f46dff056f36c3e","user":{"login":"The-Compiler","id":625793,"avatar_url":"https://avatars.githubusercontent.com/u/625793?v=3","gravatar_id":"","url":"https://api.github.com/users/The-Compiler","html_url":"https://github.com/The-Compiler","followers_url":"https://api.github.com/users/The-Compiler/followers","following_url":"https://api.github.com/users/The-Compiler/following{/other_user}","gists_url":"https://api.github.com/users/The-Compiler/gists{/gist_id}","starred_url":"https://api.github.com/users/The-Compiler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/The-Compiler/subscriptions","organizations_url":"https://api.github.com/users/The-Compiler/orgs","repos_url":"https://api.github.com/users/The-Compiler/repos","events_url":"https://api.github.com/users/The-Compiler/events{/privacy}","received_events_url":"https://api.github.com/users/The-Compiler/received_events","type":"User","site_admin":false},"repo":{"id":21244505,"name":"qutebrowser","full_name":"The-Compiler/qutebrowser","owner":{"login":"The-Compiler","id":625793,"avatar_url":"https://avatars.githubusercontent.com/u/625793?v=3","gravatar_id":"","url":"https://api.github.com/users/The-Compiler","html_url":"https://github.com/The-Compiler","followers_url":"https://api.github.com/users/The-Compiler/followers","following_url":"https://api.github.com/users/The-Compiler/following{/other_user}","gists_url":"https://api.github.com/users/The-Compiler/gists{/gist_id}","starred_url":"https://api.github.com/users/The-Compiler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/The-Compiler/subscriptions","organizations_url":"https://api.github.com/users/The-Compiler/orgs","repos_url":"https://api.github.com/users/The-Compiler/repos","events_url":"https://api.github.com/users/The-Compiler/events{/privacy}","received_events_url":"https://api.github.com/users/The-Compiler/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/The-Compiler/qutebrowser","description":"A keyboard-driven, vim-like browser based on PyQt5 and QtWebKit.","fork":false,"url":"https://api.github.com/repos/The-Compiler/qutebrowser","forks_url":"https://api.github.com/repos/The-Compiler/qutebrowser/forks","keys_url":"https://api.github.com/repos/The-Compiler/qutebrowser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/The-Compiler/qutebrowser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/The-Compiler/qutebrowser/teams","hooks_url":"https://api.github.com/repos/The-Compiler/qutebrowser/hooks","issue_events_url":"https://api.github.com/repos/The-Compiler/qutebrowser/issues/events{/number}","events_url":"https://api.github.com/repos/The-Compiler/qutebrowser/events","assignees_url":"https://api.github.com/repos/The-Compiler/qutebrowser/assignees{/user}","branches_url":"https://api.github.com/repos/The-Compiler/qutebrowser/branches{/branch}","tags_url":"https://api.github.com/repos/The-Compiler/qutebrowser/tags","blobs_url":"https://api.github.com/repos/The-Compiler/qutebrowser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/The-Compiler/qutebrowser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/The-Compiler/qutebrowser/git/refs{/sha}","trees_url":"https://api.github.com/repos/The-Compiler/qutebrowser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/The-Compiler/qutebrowser/statuses/{sha}","languages_url":"https://api.github.com/repos/The-Compiler/qutebrowser/languages","stargazers_url":"https://api.github.com/repos/The-Compiler/qutebrowser/stargazers","contributors_url":"https://api.github.com/repos/The-Compiler/qutebrowser/contributors","subscribers_url":"https://api.github.com/repos/The-Compiler/qutebrowser/subscribers","subscription_url":"https://api.github.com/repos/The-Compiler/qutebrowser/subscription","commits_url":"https://api.github.com/repos/The-Compiler/qutebrowser/commits{/sha}","git_commits_url":"https://api.github.com/repos/The-Compiler/qutebrowser/git/commits{/sha}","comments_url":"https://api.github.com/repos/The-Compiler/qutebrowser/comments{/number}","issue_comment_url":"https://api.github.com/repos/The-Compiler/qutebrowser/issues/comments{/number}","contents_url":"https://api.github.com/repos/The-Compiler/qutebrowser/contents/{+path}","compare_url":"https://api.github.com/repos/The-Compiler/qutebrowser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/The-Compiler/qutebrowser/merges","archive_url":"https://api.github.com/repos/The-Compiler/qutebrowser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/The-Compiler/qutebrowser/downloads","issues_url":"https://api.github.com/repos/The-Compiler/qutebrowser/issues{/number}","pulls_url":"https://api.github.com/repos/The-Compiler/qutebrowser/pulls{/number}","milestones_url":"https://api.github.com/repos/The-Compiler/qutebrowser/milestones{/number}","notifications_url":"https://api.github.com/repos/The-Compiler/qutebrowser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/The-Compiler/qutebrowser/labels{/name}","releases_url":"https://api.github.com/repos/The-Compiler/qutebrowser/releases{/id}","created_at":"2014-06-26T14:59:34Z","updated_at":"2016-01-21T10:30:47Z","pushed_at":"2016-01-21T16:19:28Z","git_url":"git://github.com/The-Compiler/qutebrowser.git","ssh_url":"git@github.com:The-Compiler/qutebrowser.git","clone_url":"https://github.com/The-Compiler/qutebrowser.git","svn_url":"https://github.com/The-Compiler/qutebrowser","homepage":null,"size":12947,"stargazers_count":882,"watchers_count":882,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":136,"mirror_url":null,"open_issues_count":369,"forks":136,"open_issues":369,"watchers":882,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/The-Compiler/qutebrowser/pulls/1253"},"html":{"href":"https://github.com/The-Compiler/qutebrowser/pull/1253"},"issue":{"href":"https://api.github.com/repos/The-Compiler/qutebrowser/issues/1253"},"comments":{"href":"https://api.github.com/repos/The-Compiler/qutebrowser/issues/1253/comments"},"review_comments":{"href":"https://api.github.com/repos/The-Compiler/qutebrowser/pulls/1253/comments"},"review_comment":{"href":"https://api.github.com/repos/The-Compiler/qutebrowser/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/The-Compiler/qutebrowser/pulls/1253/commits"},"statuses":{"href":"https://api.github.com/repos/The-Compiler/qutebrowser/statuses/1ecccc1133dffa693bb782c51d8d039e376f2a2a"}}}}