{"action":"closed","issue":{"url":"https://api.github.com/repos/dart-atom/dartlang/issues/793","repository_url":"https://api.github.com/repos/dart-atom/dartlang","labels_url":"https://api.github.com/repos/dart-atom/dartlang/issues/793/labels{/name}","comments_url":"https://api.github.com/repos/dart-atom/dartlang/issues/793/comments","events_url":"https://api.github.com/repos/dart-atom/dartlang/issues/793/events","html_url":"https://github.com/dart-atom/dartlang/issues/793","id":136145189,"number":793,"title":"If you search a string, then put something in the replace, then replace the search string, then edit the replace string Atom gets confused about what it's replacing.","user":{"login":"apwilson","id":142874,"avatar_url":"https://avatars.githubusercontent.com/u/142874?v=3","gravatar_id":"","url":"https://api.github.com/users/apwilson","html_url":"https://github.com/apwilson","followers_url":"https://api.github.com/users/apwilson/followers","following_url":"https://api.github.com/users/apwilson/following{/other_user}","gists_url":"https://api.github.com/users/apwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/apwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apwilson/subscriptions","organizations_url":"https://api.github.com/users/apwilson/orgs","repos_url":"https://api.github.com/users/apwilson/repos","events_url":"https://api.github.com/users/apwilson/events{/privacy}","received_events_url":"https://api.github.com/users/apwilson/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-24T18:24:08Z","updated_at":"2016-02-24T18:39:13Z","closed_at":"2016-02-24T18:39:13Z","body":"Example file:\r\n```dart\r\nint abc;\r\nint xyz;\r\n```\r\nRepro:\r\n1. Find in project 'xyz'.  Hit enter to take you to the 'here are all the instances of xyz in your project window'.\r\n2. Fill in replace with 'foo'.  (this step might not be required.)\r\n3. Change search string to 'abc' (note you can't press replace all button anymore). ((**DON'T** hit enter to take you to the 'here are all the instances of abc in your project window'.))\r\n4. Change replace string to 'bar' (the replace all button unlocks).  NOTE  string at top of find window indicates it's found one abc (and not xyz)\r\n5. Click replace all button.\r\n\r\nAtom proceeds to signal (a warning window and all strings indicate that) it's replacing all indications of abc to bar.  But what it ends up doing is replacing xyz with bar.\r\n"}}