{"action":"created","issue":{"url":"https://api.github.com/repos/olafurpg/scalafmt/issues/442","repository_url":"https://api.github.com/repos/olafurpg/scalafmt","labels_url":"https://api.github.com/repos/olafurpg/scalafmt/issues/442/labels{/name}","comments_url":"https://api.github.com/repos/olafurpg/scalafmt/issues/442/comments","events_url":"https://api.github.com/repos/olafurpg/scalafmt/issues/442/events","html_url":"https://github.com/olafurpg/scalafmt/issues/442","id":176952712,"number":442,"title":"IntelliJ plugin: Undo after formatting undoes too much","user":{"login":"andrewkerr9000","id":2777786,"avatar_url":"https://avatars.githubusercontent.com/u/2777786?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewkerr9000","html_url":"https://github.com/andrewkerr9000","followers_url":"https://api.github.com/users/andrewkerr9000/followers","following_url":"https://api.github.com/users/andrewkerr9000/following{/other_user}","gists_url":"https://api.github.com/users/andrewkerr9000/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewkerr9000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewkerr9000/subscriptions","organizations_url":"https://api.github.com/users/andrewkerr9000/orgs","repos_url":"https://api.github.com/users/andrewkerr9000/repos","events_url":"https://api.github.com/users/andrewkerr9000/events{/privacy}","received_events_url":"https://api.github.com/users/andrewkerr9000/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-14T16:17:53Z","updated_at":"2016-10-17T17:19:35Z","closed_at":null,"body":"Seems to be a bug in the plugin code, not the formatter.\r\n\r\n**Version**: (for example, 0.3.1)\r\n0.3.1\r\n**Integration**: (for example, intellij, sbt, library)\r\nIntelliJ\r\n**Configuration**: (for example, `--maxColumn 120`)\r\n```\r\n--style defaultWithAlign\r\n--maxColumn 120\r\n--assumeStandardLibraryStripMargin true\r\n```\r\n(but probably irrelevant)\r\n\r\nSteps to reproduce:\r\nOpen a scala file\r\nType `// foo` on a blank line\r\nFormat with scalafmt plugin\r\nundo\r\n\r\nExpected: Formatting undone, `// foo` still present\r\nActual: Formatting is undone, and the `foo` in `// foo` is too, leaving only `//`\r\n\r\nUndoing IntelliJ's built in formatting works as expected."},"comment":{"url":"https://api.github.com/repos/olafurpg/scalafmt/issues/comments/254272950","html_url":"https://github.com/olafurpg/scalafmt/issues/442#issuecomment-254272950","issue_url":"https://api.github.com/repos/olafurpg/scalafmt/issues/442","id":254272950,"user":{"login":"andrewkerr9000","id":2777786,"avatar_url":"https://avatars.githubusercontent.com/u/2777786?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewkerr9000","html_url":"https://github.com/andrewkerr9000","followers_url":"https://api.github.com/users/andrewkerr9000/followers","following_url":"https://api.github.com/users/andrewkerr9000/following{/other_user}","gists_url":"https://api.github.com/users/andrewkerr9000/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewkerr9000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewkerr9000/subscriptions","organizations_url":"https://api.github.com/users/andrewkerr9000/orgs","repos_url":"https://api.github.com/users/andrewkerr9000/repos","events_url":"https://api.github.com/users/andrewkerr9000/events{/privacy}","received_events_url":"https://api.github.com/users/andrewkerr9000/received_events","type":"User","site_admin":false},"created_at":"2016-10-17T17:19:35Z","updated_at":"2016-10-17T17:19:35Z","body":"Still happening with 0.4.5.\r\n\r\nI only see this behaviour when scalafmt changes a file.\r\n\r\n```\r\nIntelliJ IDEA 2016.2.4\r\nBuild #IC-162.2032.8, built on September 9, 2016\r\nJRE: 1.8.0_112-release-b343 x86_64\r\nJVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o\r\n```"}}
{"actor":{"display_login":"andrewkerr9000"}}