{"action":"closed","number":52,"pull_request":{"url":"https://api.github.com/repos/AndrewRadev/switch.vim/pulls/52","id":208093751,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA4MDkzNzUx","html_url":"https://github.com/AndrewRadev/switch.vim/pull/52","diff_url":"https://github.com/AndrewRadev/switch.vim/pull/52.diff","patch_url":"https://github.com/AndrewRadev/switch.vim/pull/52.patch","issue_url":"https://api.github.com/repos/AndrewRadev/switch.vim/issues/52","number":52,"state":"closed","locked":false,"title":"Fix overwriting current search","user":{"login":"shanesmith","id":348425,"node_id":"MDQ6VXNlcjM0ODQyNQ==","avatar_url":"https://avatars1.githubusercontent.com/u/348425?v=4","gravatar_id":"","url":"https://api.github.com/users/shanesmith","html_url":"https://github.com/shanesmith","followers_url":"https://api.github.com/users/shanesmith/followers","following_url":"https://api.github.com/users/shanesmith/following{/other_user}","gists_url":"https://api.github.com/users/shanesmith/gists{/gist_id}","starred_url":"https://api.github.com/users/shanesmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shanesmith/subscriptions","organizations_url":"https://api.github.com/users/shanesmith/orgs","repos_url":"https://api.github.com/users/shanesmith/repos","events_url":"https://api.github.com/users/shanesmith/events{/privacy}","received_events_url":"https://api.github.com/users/shanesmith/received_events","type":"User","site_admin":false},"body":"Setting the current search to the last search in the history is not\r\nthe correct behaviour if the user has manually set @/, for example the\r\noften used `let @/ = \"\"` to clear the current search.\r\n\r\nHere we simply remember the old search before the replacement and we\r\nrestore it afterwards.","created_at":"2018-08-13T20:27:06Z","updated_at":"2018-08-14T06:13:09Z","closed_at":"2018-08-14T06:13:09Z","merged_at":"2018-08-14T06:13:09Z","merge_commit_sha":"d128bdfb081642bd120f086231d9e056fd262e0b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/AndrewRadev/switch.vim/pulls/52/commits","review_comments_url":"https://api.github.com/repos/AndrewRadev/switch.vim/pulls/52/comments","review_comment_url":"https://api.github.com/repos/AndrewRadev/switch.vim/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AndrewRadev/switch.vim/issues/52/comments","statuses_url":"https://api.github.com/repos/AndrewRadev/switch.vim/statuses/0ddecf7f5b4bb5c18cd38fd65262714540d1e36f","head":{"label":"shanesmith:master","ref":"master","sha":"0ddecf7f5b4bb5c18cd38fd65262714540d1e36f","user":{"login":"shanesmith","id":348425,"node_id":"MDQ6VXNlcjM0ODQyNQ==","avatar_url":"https://avatars1.githubusercontent.com/u/348425?v=4","gravatar_id":"","url":"https://api.github.com/users/shanesmith","html_url":"https://github.com/shanesmith","followers_url":"https://api.github.com/users/shanesmith/followers","following_url":"https://api.github.com/users/shanesmith/following{/other_user}","gists_url":"https://api.github.com/users/shanesmith/gists{/gist_id}","starred_url":"https://api.github.com/users/shanesmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shanesmith/subscriptions","organizations_url":"https://api.github.com/users/shanesmith/orgs","repos_url":"https://api.github.com/users/shanesmith/repos","events_url":"https://api.github.com/users/shanesmith/events{/privacy}","received_events_url":"https://api.github.com/users/shanesmith/received_events","type":"User","site_admin":false},"repo":{"id":144628873,"node_id":"MDEwOlJlcG9zaXRvcnkxNDQ2Mjg4NzM=","name":"switch.vim","full_name":"shanesmith/switch.vim","owner":{"login":"shanesmith","id":348425,"node_id":"MDQ6VXNlcjM0ODQyNQ==","avatar_url":"https://avatars1.githubusercontent.com/u/348425?v=4","gravatar_id":"","url":"https://api.github.com/users/shanesmith","html_url":"https://github.com/shanesmith","followers_url":"https://api.github.com/users/shanesmith/followers","following_url":"https://api.github.com/users/shanesmith/following{/other_user}","gists_url":"https://api.github.com/users/shanesmith/gists{/gist_id}","starred_url":"https://api.github.com/users/shanesmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shanesmith/subscriptions","organizations_url":"https://api.github.com/users/shanesmith/orgs","repos_url":"https://api.github.com/users/shanesmith/repos","events_url":"https://api.github.com/users/shanesmith/events{/privacy}","received_events_url":"https://api.github.com/users/shanesmith/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shanesmith/switch.vim","description":"A simple Vim plugin to switch segments of text with predefined replacements","fork":true,"url":"https://api.github.com/repos/shanesmith/switch.vim","forks_url":"https://api.github.com/repos/shanesmith/switch.vim/forks","keys_url":"https://api.github.com/repos/shanesmith/switch.vim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shanesmith/switch.vim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shanesmith/switch.vim/teams","hooks_url":"https://api.github.com/repos/shanesmith/switch.vim/hooks","issue_events_url":"https://api.github.com/repos/shanesmith/switch.vim/issues/events{/number}","events_url":"https://api.github.com/repos/shanesmith/switch.vim/events","assignees_url":"https://api.github.com/repos/shanesmith/switch.vim/assignees{/user}","branches_url":"https://api.github.com/repos/shanesmith/switch.vim/branches{/branch}","tags_url":"https://api.github.com/repos/shanesmith/switch.vim/tags","blobs_url":"https://api.github.com/repos/shanesmith/switch.vim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shanesmith/switch.vim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shanesmith/switch.vim/git/refs{/sha}","trees_url":"https://api.github.com/repos/shanesmith/switch.vim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shanesmith/switch.vim/statuses/{sha}","languages_url":"https://api.github.com/repos/shanesmith/switch.vim/languages","stargazers_url":"https://api.github.com/repos/shanesmith/switch.vim/stargazers","contributors_url":"https://api.github.com/repos/shanesmith/switch.vim/contributors","subscribers_url":"https://api.github.com/repos/shanesmith/switch.vim/subscribers","subscription_url":"https://api.github.com/repos/shanesmith/switch.vim/subscription","commits_url":"https://api.github.com/repos/shanesmith/switch.vim/commits{/sha}","git_commits_url":"https://api.github.com/repos/shanesmith/switch.vim/git/commits{/sha}","comments_url":"https://api.github.com/repos/shanesmith/switch.vim/comments{/number}","issue_comment_url":"https://api.github.com/repos/shanesmith/switch.vim/issues/comments{/number}","contents_url":"https://api.github.com/repos/shanesmith/switch.vim/contents/{+path}","compare_url":"https://api.github.com/repos/shanesmith/switch.vim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shanesmith/switch.vim/merges","archive_url":"https://api.github.com/repos/shanesmith/switch.vim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shanesmith/switch.vim/downloads","issues_url":"https://api.github.com/repos/shanesmith/switch.vim/issues{/number}","pulls_url":"https://api.github.com/repos/shanesmith/switch.vim/pulls{/number}","milestones_url":"https://api.github.com/repos/shanesmith/switch.vim/milestones{/number}","notifications_url":"https://api.github.com/repos/shanesmith/switch.vim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shanesmith/switch.vim/labels{/name}","releases_url":"https://api.github.com/repos/shanesmith/switch.vim/releases{/id}","deployments_url":"https://api.github.com/repos/shanesmith/switch.vim/deployments","created_at":"2018-08-13T20:13:51Z","updated_at":"2018-08-13T20:26:55Z","pushed_at":"2018-08-13T20:26:53Z","git_url":"git://github.com/shanesmith/switch.vim.git","ssh_url":"git@github.com:shanesmith/switch.vim.git","clone_url":"https://github.com/shanesmith/switch.vim.git","svn_url":"https://github.com/shanesmith/switch.vim","homepage":"http://www.vim.org/scripts/script.php?script_id=4172","size":184,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"AndrewRadev:master","ref":"master","sha":"b6c1e80d7f62c391400349008f3a4a9aa49773db","user":{"login":"AndrewRadev","id":124255,"node_id":"MDQ6VXNlcjEyNDI1NQ==","avatar_url":"https://avatars3.githubusercontent.com/u/124255?v=4","gravatar_id":"","url":"https://api.github.com/users/AndrewRadev","html_url":"https://github.com/AndrewRadev","followers_url":"https://api.github.com/users/AndrewRadev/followers","following_url":"https://api.github.com/users/AndrewRadev/following{/other_user}","gists_url":"https://api.github.com/users/AndrewRadev/gists{/gist_id}","starred_url":"https://api.github.com/users/AndrewRadev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndrewRadev/subscriptions","organizations_url":"https://api.github.com/users/AndrewRadev/orgs","repos_url":"https://api.github.com/users/AndrewRadev/repos","events_url":"https://api.github.com/users/AndrewRadev/events{/privacy}","received_events_url":"https://api.github.com/users/AndrewRadev/received_events","type":"User","site_admin":false},"repo":{"id":5140235,"node_id":"MDEwOlJlcG9zaXRvcnk1MTQwMjM1","name":"switch.vim","full_name":"AndrewRadev/switch.vim","owner":{"login":"AndrewRadev","id":124255,"node_id":"MDQ6VXNlcjEyNDI1NQ==","avatar_url":"https://avatars3.githubusercontent.com/u/124255?v=4","gravatar_id":"","url":"https://api.github.com/users/AndrewRadev","html_url":"https://github.com/AndrewRadev","followers_url":"https://api.github.com/users/AndrewRadev/followers","following_url":"https://api.github.com/users/AndrewRadev/following{/other_user}","gists_url":"https://api.github.com/users/AndrewRadev/gists{/gist_id}","starred_url":"https://api.github.com/users/AndrewRadev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndrewRadev/subscriptions","organizations_url":"https://api.github.com/users/AndrewRadev/orgs","repos_url":"https://api.github.com/users/AndrewRadev/repos","events_url":"https://api.github.com/users/AndrewRadev/events{/privacy}","received_events_url":"https://api.github.com/users/AndrewRadev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AndrewRadev/switch.vim","description":"A simple Vim plugin to switch segments of text with predefined replacements","fork":false,"url":"https://api.github.com/repos/AndrewRadev/switch.vim","forks_url":"https://api.github.com/repos/AndrewRadev/switch.vim/forks","keys_url":"https://api.github.com/repos/AndrewRadev/switch.vim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AndrewRadev/switch.vim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AndrewRadev/switch.vim/teams","hooks_url":"https://api.github.com/repos/AndrewRadev/switch.vim/hooks","issue_events_url":"https://api.github.com/repos/AndrewRadev/switch.vim/issues/events{/number}","events_url":"https://api.github.com/repos/AndrewRadev/switch.vim/events","assignees_url":"https://api.github.com/repos/AndrewRadev/switch.vim/assignees{/user}","branches_url":"https://api.github.com/repos/AndrewRadev/switch.vim/branches{/branch}","tags_url":"https://api.github.com/repos/AndrewRadev/switch.vim/tags","blobs_url":"https://api.github.com/repos/AndrewRadev/switch.vim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AndrewRadev/switch.vim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AndrewRadev/switch.vim/git/refs{/sha}","trees_url":"https://api.github.com/repos/AndrewRadev/switch.vim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AndrewRadev/switch.vim/statuses/{sha}","languages_url":"https://api.github.com/repos/AndrewRadev/switch.vim/languages","stargazers_url":"https://api.github.com/repos/AndrewRadev/switch.vim/stargazers","contributors_url":"https://api.github.com/repos/AndrewRadev/switch.vim/contributors","subscribers_url":"https://api.github.com/repos/AndrewRadev/switch.vim/subscribers","subscription_url":"https://api.github.com/repos/AndrewRadev/switch.vim/subscription","commits_url":"https://api.github.com/repos/AndrewRadev/switch.vim/commits{/sha}","git_commits_url":"https://api.github.com/repos/AndrewRadev/switch.vim/git/commits{/sha}","comments_url":"https://api.github.com/repos/AndrewRadev/switch.vim/comments{/number}","issue_comment_url":"https://api.github.com/repos/AndrewRadev/switch.vim/issues/comments{/number}","contents_url":"https://api.github.com/repos/AndrewRadev/switch.vim/contents/{+path}","compare_url":"https://api.github.com/repos/AndrewRadev/switch.vim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AndrewRadev/switch.vim/merges","archive_url":"https://api.github.com/repos/AndrewRadev/switch.vim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AndrewRadev/switch.vim/downloads","issues_url":"https://api.github.com/repos/AndrewRadev/switch.vim/issues{/number}","pulls_url":"https://api.github.com/repos/AndrewRadev/switch.vim/pulls{/number}","milestones_url":"https://api.github.com/repos/AndrewRadev/switch.vim/milestones{/number}","notifications_url":"https://api.github.com/repos/AndrewRadev/switch.vim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AndrewRadev/switch.vim/labels{/name}","releases_url":"https://api.github.com/repos/AndrewRadev/switch.vim/releases{/id}","deployments_url":"https://api.github.com/repos/AndrewRadev/switch.vim/deployments","created_at":"2012-07-22T08:30:11Z","updated_at":"2018-08-08T11:18:22Z","pushed_at":"2018-08-14T06:13:09Z","git_url":"git://github.com/AndrewRadev/switch.vim.git","ssh_url":"git@github.com:AndrewRadev/switch.vim.git","clone_url":"https://github.com/AndrewRadev/switch.vim.git","svn_url":"https://github.com/AndrewRadev/switch.vim","homepage":"http://www.vim.org/scripts/script.php?script_id=4172","size":184,"stargazers_count":333,"watchers_count":333,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":23,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":23,"open_issues":5,"watchers":333,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AndrewRadev/switch.vim/pulls/52"},"html":{"href":"https://github.com/AndrewRadev/switch.vim/pull/52"},"issue":{"href":"https://api.github.com/repos/AndrewRadev/switch.vim/issues/52"},"comments":{"href":"https://api.github.com/repos/AndrewRadev/switch.vim/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/AndrewRadev/switch.vim/pulls/52/comments"},"review_comment":{"href":"https://api.github.com/repos/AndrewRadev/switch.vim/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AndrewRadev/switch.vim/pulls/52/commits"},"statuses":{"href":"https://api.github.com/repos/AndrewRadev/switch.vim/statuses/0ddecf7f5b4bb5c18cd38fd65262714540d1e36f"}},"author_association":"NONE","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"AndrewRadev","id":124255,"node_id":"MDQ6VXNlcjEyNDI1NQ==","avatar_url":"https://avatars3.githubusercontent.com/u/124255?v=4","gravatar_id":"","url":"https://api.github.com/users/AndrewRadev","html_url":"https://github.com/AndrewRadev","followers_url":"https://api.github.com/users/AndrewRadev/followers","following_url":"https://api.github.com/users/AndrewRadev/following{/other_user}","gists_url":"https://api.github.com/users/AndrewRadev/gists{/gist_id}","starred_url":"https://api.github.com/users/AndrewRadev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndrewRadev/subscriptions","organizations_url":"https://api.github.com/users/AndrewRadev/orgs","repos_url":"https://api.github.com/users/AndrewRadev/repos","events_url":"https://api.github.com/users/AndrewRadev/events{/privacy}","received_events_url":"https://api.github.com/users/AndrewRadev/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":3,"deletions":2,"changed_files":1}}
{"actor":{"display_login":"AndrewRadev"}}