{"action":"created","comment":{"url":"https://api.github.com/repos/minetest/minetest_game/pulls/comments/49949064","id":49949064,"diff_hunk":"@@ -163,7 +163,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)\n \tlocal formspec = player:get_inventory_formspec()\n \tlocal filter = formspec:match(\"filter;;([%w_:]+)\") or \"\"\n \tlocal start_i = formspec:match(\"list%[detached:creative_\".. player_name ..\";.*;(%d+)%]\")\n-\tlocal tab_id = tonumber(formspec:match(\"tabheader%[.*;(%d+)%;.*%]\"))\n+\tlocal tab_id = tonumber(formspec:match(\"tabheader%[.*;(%d)%;.*%]\"))","path":"mods/creative/init.lua","position":14,"original_position":14,"commit_id":"ba5a26766a8eb3f640930e2e10bc843b363b4c72","original_commit_id":"ba5a26766a8eb3f640930e2e10bc843b363b4c72","user":{"login":"kilbith","id":7883281,"avatar_url":"https://avatars.githubusercontent.com/u/7883281?v=3","gravatar_id":"","url":"https://api.github.com/users/kilbith","html_url":"https://github.com/kilbith","followers_url":"https://api.github.com/users/kilbith/followers","following_url":"https://api.github.com/users/kilbith/following{/other_user}","gists_url":"https://api.github.com/users/kilbith/gists{/gist_id}","starred_url":"https://api.github.com/users/kilbith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kilbith/subscriptions","organizations_url":"https://api.github.com/users/kilbith/orgs","repos_url":"https://api.github.com/users/kilbith/repos","events_url":"https://api.github.com/users/kilbith/events{/privacy}","received_events_url":"https://api.github.com/users/kilbith/received_events","type":"User","site_admin":false},"body":"To limit the matching from 0 to 9, and not 1 to infinite number (not needed for tab indexes).","created_at":"2016-01-17T17:15:16Z","updated_at":"2016-01-17T17:15:16Z","html_url":"https://github.com/minetest/minetest_game/pull/791#discussion_r49949064","pull_request_url":"https://api.github.com/repos/minetest/minetest_game/pulls/791","_links":{"self":{"href":"https://api.github.com/repos/minetest/minetest_game/pulls/comments/49949064"},"html":{"href":"https://github.com/minetest/minetest_game/pull/791#discussion_r49949064"},"pull_request":{"href":"https://api.github.com/repos/minetest/minetest_game/pulls/791"}}},"pull_request":{"url":"https://api.github.com/repos/minetest/minetest_game/pulls/791","id":56281654,"html_url":"https://github.com/minetest/minetest_game/pull/791","diff_url":"https://github.com/minetest/minetest_game/pull/791.diff","patch_url":"https://github.com/minetest/minetest_game/pull/791.patch","issue_url":"https://api.github.com/repos/minetest/minetest_game/issues/791","number":791,"state":"open","locked":false,"title":"Fix blank page in creative on some rare case","user":{"login":"kilbith","id":7883281,"avatar_url":"https://avatars.githubusercontent.com/u/7883281?v=3","gravatar_id":"","url":"https://api.github.com/users/kilbith","html_url":"https://github.com/kilbith","followers_url":"https://api.github.com/users/kilbith/followers","following_url":"https://api.github.com/users/kilbith/following{/other_user}","gists_url":"https://api.github.com/users/kilbith/gists{/gist_id}","starred_url":"https://api.github.com/users/kilbith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kilbith/subscriptions","organizations_url":"https://api.github.com/users/kilbith/orgs","repos_url":"https://api.github.com/users/kilbith/repos","events_url":"https://api.github.com/users/kilbith/events{/privacy}","received_events_url":"https://api.github.com/users/kilbith/received_events","type":"User","site_admin":false},"body":"When you click on previous from page 1 and if the number of items is a multiple of 24 (= inventory size), then `start_i` is equal to `inv_size` (thus with no rest), resulting in a blank page.","created_at":"2016-01-17T16:43:45Z","updated_at":"2016-01-17T17:15:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"691ef4d781e8a1f385189cbcefb46c86fba05232","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/minetest/minetest_game/pulls/791/commits","review_comments_url":"https://api.github.com/repos/minetest/minetest_game/pulls/791/comments","review_comment_url":"https://api.github.com/repos/minetest/minetest_game/pulls/comments{/number}","comments_url":"https://api.github.com/repos/minetest/minetest_game/issues/791/comments","statuses_url":"https://api.github.com/repos/minetest/minetest_game/statuses/ba5a26766a8eb3f640930e2e10bc843b363b4c72","head":{"label":"kilbith:master","ref":"master","sha":"ba5a26766a8eb3f640930e2e10bc843b363b4c72","user":{"login":"kilbith","id":7883281,"avatar_url":"https://avatars.githubusercontent.com/u/7883281?v=3","gravatar_id":"","url":"https://api.github.com/users/kilbith","html_url":"https://github.com/kilbith","followers_url":"https://api.github.com/users/kilbith/followers","following_url":"https://api.github.com/users/kilbith/following{/other_user}","gists_url":"https://api.github.com/users/kilbith/gists{/gist_id}","starred_url":"https://api.github.com/users/kilbith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kilbith/subscriptions","organizations_url":"https://api.github.com/users/kilbith/orgs","repos_url":"https://api.github.com/users/kilbith/repos","events_url":"https://api.github.com/users/kilbith/events{/privacy}","received_events_url":"https://api.github.com/users/kilbith/received_events","type":"User","site_admin":false},"repo":{"id":49825446,"name":"minetest_game","full_name":"kilbith/minetest_game","owner":{"login":"kilbith","id":7883281,"avatar_url":"https://avatars.githubusercontent.com/u/7883281?v=3","gravatar_id":"","url":"https://api.github.com/users/kilbith","html_url":"https://github.com/kilbith","followers_url":"https://api.github.com/users/kilbith/followers","following_url":"https://api.github.com/users/kilbith/following{/other_user}","gists_url":"https://api.github.com/users/kilbith/gists{/gist_id}","starred_url":"https://api.github.com/users/kilbith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kilbith/subscriptions","organizations_url":"https://api.github.com/users/kilbith/orgs","repos_url":"https://api.github.com/users/kilbith/repos","events_url":"https://api.github.com/users/kilbith/events{/privacy}","received_events_url":"https://api.github.com/users/kilbith/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kilbith/minetest_game","description":"The main game for the Minetest game engine [minetest_game] [https://github.com/minetest/minetest/]","fork":true,"url":"https://api.github.com/repos/kilbith/minetest_game","forks_url":"https://api.github.com/repos/kilbith/minetest_game/forks","keys_url":"https://api.github.com/repos/kilbith/minetest_game/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kilbith/minetest_game/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kilbith/minetest_game/teams","hooks_url":"https://api.github.com/repos/kilbith/minetest_game/hooks","issue_events_url":"https://api.github.com/repos/kilbith/minetest_game/issues/events{/number}","events_url":"https://api.github.com/repos/kilbith/minetest_game/events","assignees_url":"https://api.github.com/repos/kilbith/minetest_game/assignees{/user}","branches_url":"https://api.github.com/repos/kilbith/minetest_game/branches{/branch}","tags_url":"https://api.github.com/repos/kilbith/minetest_game/tags","blobs_url":"https://api.github.com/repos/kilbith/minetest_game/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kilbith/minetest_game/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kilbith/minetest_game/git/refs{/sha}","trees_url":"https://api.github.com/repos/kilbith/minetest_game/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kilbith/minetest_game/statuses/{sha}","languages_url":"https://api.github.com/repos/kilbith/minetest_game/languages","stargazers_url":"https://api.github.com/repos/kilbith/minetest_game/stargazers","contributors_url":"https://api.github.com/repos/kilbith/minetest_game/contributors","subscribers_url":"https://api.github.com/repos/kilbith/minetest_game/subscribers","subscription_url":"https://api.github.com/repos/kilbith/minetest_game/subscription","commits_url":"https://api.github.com/repos/kilbith/minetest_game/commits{/sha}","git_commits_url":"https://api.github.com/repos/kilbith/minetest_game/git/commits{/sha}","comments_url":"https://api.github.com/repos/kilbith/minetest_game/comments{/number}","issue_comment_url":"https://api.github.com/repos/kilbith/minetest_game/issues/comments{/number}","contents_url":"https://api.github.com/repos/kilbith/minetest_game/contents/{+path}","compare_url":"https://api.github.com/repos/kilbith/minetest_game/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kilbith/minetest_game/merges","archive_url":"https://api.github.com/repos/kilbith/minetest_game/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kilbith/minetest_game/downloads","issues_url":"https://api.github.com/repos/kilbith/minetest_game/issues{/number}","pulls_url":"https://api.github.com/repos/kilbith/minetest_game/pulls{/number}","milestones_url":"https://api.github.com/repos/kilbith/minetest_game/milestones{/number}","notifications_url":"https://api.github.com/repos/kilbith/minetest_game/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kilbith/minetest_game/labels{/name}","releases_url":"https://api.github.com/repos/kilbith/minetest_game/releases{/id}","created_at":"2016-01-17T16:30:09Z","updated_at":"2016-01-17T16:30:12Z","pushed_at":"2016-01-17T16:33:28Z","git_url":"git://github.com/kilbith/minetest_game.git","ssh_url":"git@github.com:kilbith/minetest_game.git","clone_url":"https://github.com/kilbith/minetest_game.git","svn_url":"https://github.com/kilbith/minetest_game","homepage":"http://minetest.net/","size":4085,"stargazers_count":0,"watchers_count":0,"language":"Lua","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":"minetest:master","ref":"master","sha":"6d79d157c30ceb5a85fc20c703a72794f7c254e9","user":{"login":"minetest","id":2624745,"avatar_url":"https://avatars.githubusercontent.com/u/2624745?v=3","gravatar_id":"","url":"https://api.github.com/users/minetest","html_url":"https://github.com/minetest","followers_url":"https://api.github.com/users/minetest/followers","following_url":"https://api.github.com/users/minetest/following{/other_user}","gists_url":"https://api.github.com/users/minetest/gists{/gist_id}","starred_url":"https://api.github.com/users/minetest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minetest/subscriptions","organizations_url":"https://api.github.com/users/minetest/orgs","repos_url":"https://api.github.com/users/minetest/repos","events_url":"https://api.github.com/users/minetest/events{/privacy}","received_events_url":"https://api.github.com/users/minetest/received_events","type":"Organization","site_admin":false},"repo":{"id":3834571,"name":"minetest_game","full_name":"minetest/minetest_game","owner":{"login":"minetest","id":2624745,"avatar_url":"https://avatars.githubusercontent.com/u/2624745?v=3","gravatar_id":"","url":"https://api.github.com/users/minetest","html_url":"https://github.com/minetest","followers_url":"https://api.github.com/users/minetest/followers","following_url":"https://api.github.com/users/minetest/following{/other_user}","gists_url":"https://api.github.com/users/minetest/gists{/gist_id}","starred_url":"https://api.github.com/users/minetest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minetest/subscriptions","organizations_url":"https://api.github.com/users/minetest/orgs","repos_url":"https://api.github.com/users/minetest/repos","events_url":"https://api.github.com/users/minetest/events{/privacy}","received_events_url":"https://api.github.com/users/minetest/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/minetest/minetest_game","description":"The main game for the Minetest game engine [minetest_game] [https://github.com/minetest/minetest/]","fork":false,"url":"https://api.github.com/repos/minetest/minetest_game","forks_url":"https://api.github.com/repos/minetest/minetest_game/forks","keys_url":"https://api.github.com/repos/minetest/minetest_game/keys{/key_id}","collaborators_url":"https://api.github.com/repos/minetest/minetest_game/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/minetest/minetest_game/teams","hooks_url":"https://api.github.com/repos/minetest/minetest_game/hooks","issue_events_url":"https://api.github.com/repos/minetest/minetest_game/issues/events{/number}","events_url":"https://api.github.com/repos/minetest/minetest_game/events","assignees_url":"https://api.github.com/repos/minetest/minetest_game/assignees{/user}","branches_url":"https://api.github.com/repos/minetest/minetest_game/branches{/branch}","tags_url":"https://api.github.com/repos/minetest/minetest_game/tags","blobs_url":"https://api.github.com/repos/minetest/minetest_game/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/minetest/minetest_game/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/minetest/minetest_game/git/refs{/sha}","trees_url":"https://api.github.com/repos/minetest/minetest_game/git/trees{/sha}","statuses_url":"https://api.github.com/repos/minetest/minetest_game/statuses/{sha}","languages_url":"https://api.github.com/repos/minetest/minetest_game/languages","stargazers_url":"https://api.github.com/repos/minetest/minetest_game/stargazers","contributors_url":"https://api.github.com/repos/minetest/minetest_game/contributors","subscribers_url":"https://api.github.com/repos/minetest/minetest_game/subscribers","subscription_url":"https://api.github.com/repos/minetest/minetest_game/subscription","commits_url":"https://api.github.com/repos/minetest/minetest_game/commits{/sha}","git_commits_url":"https://api.github.com/repos/minetest/minetest_game/git/commits{/sha}","comments_url":"https://api.github.com/repos/minetest/minetest_game/comments{/number}","issue_comment_url":"https://api.github.com/repos/minetest/minetest_game/issues/comments{/number}","contents_url":"https://api.github.com/repos/minetest/minetest_game/contents/{+path}","compare_url":"https://api.github.com/repos/minetest/minetest_game/compare/{base}...{head}","merges_url":"https://api.github.com/repos/minetest/minetest_game/merges","archive_url":"https://api.github.com/repos/minetest/minetest_game/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/minetest/minetest_game/downloads","issues_url":"https://api.github.com/repos/minetest/minetest_game/issues{/number}","pulls_url":"https://api.github.com/repos/minetest/minetest_game/pulls{/number}","milestones_url":"https://api.github.com/repos/minetest/minetest_game/milestones{/number}","notifications_url":"https://api.github.com/repos/minetest/minetest_game/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/minetest/minetest_game/labels{/name}","releases_url":"https://api.github.com/repos/minetest/minetest_game/releases{/id}","created_at":"2012-03-26T16:03:29Z","updated_at":"2016-01-16T20:12:30Z","pushed_at":"2016-01-17T16:43:45Z","git_url":"git://github.com/minetest/minetest_game.git","ssh_url":"git@github.com:minetest/minetest_game.git","clone_url":"https://github.com/minetest/minetest_game.git","svn_url":"https://github.com/minetest/minetest_game","homepage":"http://minetest.net/","size":12439,"stargazers_count":359,"watchers_count":359,"language":"Lua","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":227,"mirror_url":null,"open_issues_count":67,"forks":227,"open_issues":67,"watchers":359,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/minetest/minetest_game/pulls/791"},"html":{"href":"https://github.com/minetest/minetest_game/pull/791"},"issue":{"href":"https://api.github.com/repos/minetest/minetest_game/issues/791"},"comments":{"href":"https://api.github.com/repos/minetest/minetest_game/issues/791/comments"},"review_comments":{"href":"https://api.github.com/repos/minetest/minetest_game/pulls/791/comments"},"review_comment":{"href":"https://api.github.com/repos/minetest/minetest_game/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/minetest/minetest_game/pulls/791/commits"},"statuses":{"href":"https://api.github.com/repos/minetest/minetest_game/statuses/ba5a26766a8eb3f640930e2e10bc843b363b4c72"}}}}