{"action":"created","issue":{"url":"https://api.github.com/repos/atom/atom/issues/13829","repository_url":"https://api.github.com/repos/atom/atom","labels_url":"https://api.github.com/repos/atom/atom/issues/13829/labels{/name}","comments_url":"https://api.github.com/repos/atom/atom/issues/13829/comments","events_url":"https://api.github.com/repos/atom/atom/issues/13829/events","html_url":"https://github.com/atom/atom/issues/13829","id":207977725,"number":13829,"title":"Soft wrap settings reset when saving new file","user":{"login":"arkadiyt","id":2279289,"avatar_url":"https://avatars.githubusercontent.com/u/2279289?v=3","gravatar_id":"","url":"https://api.github.com/users/arkadiyt","html_url":"https://github.com/arkadiyt","followers_url":"https://api.github.com/users/arkadiyt/followers","following_url":"https://api.github.com/users/arkadiyt/following{/other_user}","gists_url":"https://api.github.com/users/arkadiyt/gists{/gist_id}","starred_url":"https://api.github.com/users/arkadiyt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arkadiyt/subscriptions","organizations_url":"https://api.github.com/users/arkadiyt/orgs","repos_url":"https://api.github.com/users/arkadiyt/repos","events_url":"https://api.github.com/users/arkadiyt/events{/privacy}","received_events_url":"https://api.github.com/users/arkadiyt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-16T00:46:03Z","updated_at":"2017-02-16T14:51:26Z","closed_at":null,"body":"<!--\r\n\r\nHave you read Atom's Code of Conduct? By filing an Issue, you are expected to comply with it, including treating everyone with respect: https://github.com/atom/atom/blob/master/CODE_OF_CONDUCT.md\r\n\r\nDo you want to ask a question? Are you looking for support? The Atom message board is the best place for getting support: https://discuss.atom.io\r\n\r\n-->\r\n\r\n### Prerequisites\r\n\r\n* [x] Put an X between the brackets on this line if you have done all of the following:\r\n    * Reproduced the problem in Safe Mode: http://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode\r\n    * Followed all applicable steps in the debugging guide: http://flight-manual.atom.io/hacking-atom/sections/debugging/\r\n    * Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq\r\n    * Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom\r\n    * Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages\r\n\r\n### Description\r\n\r\nIf soft wrap is enabled on a new, unsaved file and you save that file, then soft wrap is disabled on that file.\r\n\r\n### Steps to Reproduce\r\n\r\n1. Open a new, untitled window.\r\n2. Put in enough text so as to require horizontal scrolling, and enable the soft wrapping under \"View\" -> \"Toggle Soft Wrap\"\r\n3. Save the file\r\n\r\n**Expected behavior:**\r\n\r\nI expect the file to save and retain the soft wrap settings.\r\n\r\n**Actual behavior:** \r\n\r\nThe file saves but soft wrap is reset, and you get a single long line of text.\r\n\r\n**Reproduces how often:**\r\n\r\n100% reproducible. Only happens when saving a *new* file - if you enable soft wrap again, make some changes in the file and save it again, then the soft wrap settings are retained.\r\n\r\n### Versions\r\n\r\nAtom:\r\n```\r\nAtom    : 1.14.2\r\nElectron: 1.3.13\r\nChrome  : 52.0.2743.82\r\nNode    : 6.5.0\r\n```\r\nApm:\r\n```\r\napm  1.15.3\r\nnpm  3.10.5\r\nnode 4.4.5 x64\r\npython 2.7.13\r\ngit 2.11.1\r\n```\r\nOS: OSX Sierra 10.12.3\r\n```\r\n$ uname -mprsv\r\nDarwin 16.4.0 Darwin Kernel Version 16.4.0: Thu Dec 22 22:53:21 PST 2016; root:xnu-3789.41.3~3/RELEASE_X86_64 x86_64 i386\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/atom/atom/issues/comments/280351106","html_url":"https://github.com/atom/atom/issues/13829#issuecomment-280351106","issue_url":"https://api.github.com/repos/atom/atom/issues/13829","id":280351106,"user":{"login":"50Wliu","id":2766036,"avatar_url":"https://avatars.githubusercontent.com/u/2766036?v=3","gravatar_id":"","url":"https://api.github.com/users/50Wliu","html_url":"https://github.com/50Wliu","followers_url":"https://api.github.com/users/50Wliu/followers","following_url":"https://api.github.com/users/50Wliu/following{/other_user}","gists_url":"https://api.github.com/users/50Wliu/gists{/gist_id}","starred_url":"https://api.github.com/users/50Wliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/50Wliu/subscriptions","organizations_url":"https://api.github.com/users/50Wliu/orgs","repos_url":"https://api.github.com/users/50Wliu/repos","events_url":"https://api.github.com/users/50Wliu/events{/privacy}","received_events_url":"https://api.github.com/users/50Wliu/received_events","type":"User","site_admin":false},"created_at":"2017-02-16T14:51:26Z","updated_at":"2017-02-16T14:51:26Z","body":"I can't reproduce this using Atom 1.16.0-dev-4422354, Windows 10 x64.\r\n\r\n/cc @ungb"}}
{"actor":{"display_login":"50Wliu"}}