{"action":"created","issue":{"url":"https://api.github.com/repos/atom/find-and-replace/issues/631","labels_url":"https://api.github.com/repos/atom/find-and-replace/issues/631/labels{/name}","comments_url":"https://api.github.com/repos/atom/find-and-replace/issues/631/comments","events_url":"https://api.github.com/repos/atom/find-and-replace/issues/631/events","html_url":"https://github.com/atom/find-and-replace/issues/631","id":124588398,"number":631,"title":"Toggling \"Use Regex\" clears selection in the editor","user":{"login":"WalterGR","id":380880,"avatar_url":"https://avatars.githubusercontent.com/u/380880?v=3","gravatar_id":"","url":"https://api.github.com/users/WalterGR","html_url":"https://github.com/WalterGR","followers_url":"https://api.github.com/users/WalterGR/followers","following_url":"https://api.github.com/users/WalterGR/following{/other_user}","gists_url":"https://api.github.com/users/WalterGR/gists{/gist_id}","starred_url":"https://api.github.com/users/WalterGR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WalterGR/subscriptions","organizations_url":"https://api.github.com/users/WalterGR/orgs","repos_url":"https://api.github.com/users/WalterGR/repos","events_url":"https://api.github.com/users/WalterGR/events{/privacy}","received_events_url":"https://api.github.com/users/WalterGR/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/atom/find-and-replace/labels/more-information-needed","name":"more-information-needed","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-01-02T12:31:13Z","updated_at":"2016-01-21T21:47:38Z","closed_at":null,"body":"Atom 1.3.2 on OS X 10.10.5.\r\n\r\nRepro:\r\n\r\n1.  Select text in which you want to do a regex find-and-replace.\r\n2.  Notice that \"Use Regex\" is on or off, and you want it in the other state.\r\n3.  Toggle it, by clicking its button or using the keyboard shortcut.\r\n\r\nExpected:\r\n\r\n\"Use Regex\" is toggled and the selection in the editor is unchanged.\r\n\r\nActual:\r\n\r\n\"Use Regex\" is toggled and the selection in the editor is cleared."},"comment":{"url":"https://api.github.com/repos/atom/find-and-replace/issues/comments/173719657","html_url":"https://github.com/atom/find-and-replace/issues/631#issuecomment-173719657","issue_url":"https://api.github.com/repos/atom/find-and-replace/issues/631","id":173719657,"user":{"login":"WalterGR","id":380880,"avatar_url":"https://avatars.githubusercontent.com/u/380880?v=3","gravatar_id":"","url":"https://api.github.com/users/WalterGR","html_url":"https://github.com/WalterGR","followers_url":"https://api.github.com/users/WalterGR/followers","following_url":"https://api.github.com/users/WalterGR/following{/other_user}","gists_url":"https://api.github.com/users/WalterGR/gists{/gist_id}","starred_url":"https://api.github.com/users/WalterGR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WalterGR/subscriptions","organizations_url":"https://api.github.com/users/WalterGR/orgs","repos_url":"https://api.github.com/users/WalterGR/repos","events_url":"https://api.github.com/users/WalterGR/events{/privacy}","received_events_url":"https://api.github.com/users/WalterGR/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T21:47:37Z","updated_at":"2016-01-21T21:47:37Z","body":"My more detailed repro steps are unnecessary.  The original repro steps are fine, but to ensure you're starting from a clean slate, add:\r\n\r\nStep 0.  Open Atom.  Open Find and Replace pane.  Ensure all options are toggled off.  Close Atom.  Open Atom."}}