{"action":"created","issue":{"url":"https://api.github.com/repos/AndrewRadev/switch.vim/issues/43","repository_url":"https://api.github.com/repos/AndrewRadev/switch.vim","labels_url":"https://api.github.com/repos/AndrewRadev/switch.vim/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/AndrewRadev/switch.vim/issues/43/comments","events_url":"https://api.github.com/repos/AndrewRadev/switch.vim/issues/43/events","html_url":"https://github.com/AndrewRadev/switch.vim/issues/43","id":205861560,"number":43,"title":"Reverse ability stopped working","user":{"login":"AlexMasterov","id":700213,"avatar_url":"https://avatars.githubusercontent.com/u/700213?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexMasterov","html_url":"https://github.com/AlexMasterov","followers_url":"https://api.github.com/users/AlexMasterov/followers","following_url":"https://api.github.com/users/AlexMasterov/following{/other_user}","gists_url":"https://api.github.com/users/AlexMasterov/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexMasterov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexMasterov/subscriptions","organizations_url":"https://api.github.com/users/AlexMasterov/orgs","repos_url":"https://api.github.com/users/AlexMasterov/repos","events_url":"https://api.github.com/users/AlexMasterov/events{/privacy}","received_events_url":"https://api.github.com/users/AlexMasterov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-02-07T11:35:14Z","updated_at":"2017-02-07T16:14:37Z","closed_at":"2017-02-07T16:14:37Z","body":"Reverse ability stopped working after [#bb71ada](https://github.com/AndrewRadev/switch.vim/commit/bb71adaa39f29d6f72db7533f3ea69e7fc048c66).\r\nDid I miss something since last update? :confused:\r\n\r\n### Example\r\n```vim\r\nlet g:switchQuotes = [\r\n  \\ {\r\n  \\  '''\\(.\\{-}\\)''': '\"\\1\"',\r\n  \\  '\"\\(.\\{-}\\)\"':   '''\\1''',\r\n  \\  '`\\(.\\{-}\\)`':   '''\\1'''\r\n  \\ }\r\n  \\]\r\n\r\n\" old\r\nnnoremap <silent> ! :<C-u>silent! call switch#Switch(g:switchQuotes, {'reverse': 1})<CR>\r\n\" new (?)\r\nnnoremap <silent> ! :<C-u>silent! call switch#Switch({'definitions': g:switchQuotes}, {'reverse': 1})<CR>\r\n```\r\n### Result\r\nQuotes are changed once and the pattern/mapping completely stops working.\r\n\r\n**PS.** Please, add `silent` to `switch#Switch` by default. Thank you for such a useful plugin!"},"comment":{"url":"https://api.github.com/repos/AndrewRadev/switch.vim/issues/comments/278048964","html_url":"https://github.com/AndrewRadev/switch.vim/issues/43#issuecomment-278048964","issue_url":"https://api.github.com/repos/AndrewRadev/switch.vim/issues/43","id":278048964,"user":{"login":"AlexMasterov","id":700213,"avatar_url":"https://avatars.githubusercontent.com/u/700213?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexMasterov","html_url":"https://github.com/AlexMasterov","followers_url":"https://api.github.com/users/AlexMasterov/followers","following_url":"https://api.github.com/users/AlexMasterov/following{/other_user}","gists_url":"https://api.github.com/users/AlexMasterov/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexMasterov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexMasterov/subscriptions","organizations_url":"https://api.github.com/users/AlexMasterov/orgs","repos_url":"https://api.github.com/users/AlexMasterov/repos","events_url":"https://api.github.com/users/AlexMasterov/events{/privacy}","received_events_url":"https://api.github.com/users/AlexMasterov/received_events","type":"User","site_admin":false},"created_at":"2017-02-07T16:14:37Z","updated_at":"2017-02-07T16:14:37Z","body":"(imho) `silent` is only needed [here](https://github.com/AndrewRadev/switch.vim/blob/509c9257c0302e1425c54a6968b7110bfea9aef1/autoload/switch/match.vim#L47\r\n).\r\n\r\nNow everything works fine.\r\nThank you for taking care!"}}
{"actor":{"display_login":"AlexMasterov"}}