{"action":"created","issue":{"url":"https://api.github.com/repos/deadpixi/sam/issues/45","repository_url":"https://api.github.com/repos/deadpixi/sam","labels_url":"https://api.github.com/repos/deadpixi/sam/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/deadpixi/sam/issues/45/comments","events_url":"https://api.github.com/repos/deadpixi/sam/issues/45/events","html_url":"https://github.com/deadpixi/sam/issues/45","id":194174155,"number":45,"title":"Scrolling with the scroll wheel moves lines off the top of the window","user":{"login":"ckeen","id":336017,"avatar_url":"https://avatars0.githubusercontent.com/u/336017?v=3","gravatar_id":"","url":"https://api.github.com/users/ckeen","html_url":"https://github.com/ckeen","followers_url":"https://api.github.com/users/ckeen/followers","following_url":"https://api.github.com/users/ckeen/following{/other_user}","gists_url":"https://api.github.com/users/ckeen/gists{/gist_id}","starred_url":"https://api.github.com/users/ckeen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckeen/subscriptions","organizations_url":"https://api.github.com/users/ckeen/orgs","repos_url":"https://api.github.com/users/ckeen/repos","events_url":"https://api.github.com/users/ckeen/events{/privacy}","received_events_url":"https://api.github.com/users/ckeen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-07T21:25:05Z","updated_at":"2017-06-24T05:44:06Z","closed_at":null,"body":"This happens with the experimental branch. If you open a file and use the mouse wheel to scroll down until the end, two lines will \"move to the left\" as if the characters get removed.\r\n\r\nThe buffer content is left intact, so this seems to be a fencing problem when handling scrolling"},"comment":{"url":"https://api.github.com/repos/deadpixi/sam/issues/comments/310816288","html_url":"https://github.com/deadpixi/sam/issues/45#issuecomment-310816288","issue_url":"https://api.github.com/repos/deadpixi/sam/issues/45","id":310816288,"user":{"login":"Screwtapello","id":1450918,"avatar_url":"https://avatars2.githubusercontent.com/u/1450918?v=3","gravatar_id":"","url":"https://api.github.com/users/Screwtapello","html_url":"https://github.com/Screwtapello","followers_url":"https://api.github.com/users/Screwtapello/followers","following_url":"https://api.github.com/users/Screwtapello/following{/other_user}","gists_url":"https://api.github.com/users/Screwtapello/gists{/gist_id}","starred_url":"https://api.github.com/users/Screwtapello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Screwtapello/subscriptions","organizations_url":"https://api.github.com/users/Screwtapello/orgs","repos_url":"https://api.github.com/users/Screwtapello/repos","events_url":"https://api.github.com/users/Screwtapello/events{/privacy}","received_events_url":"https://api.github.com/users/Screwtapello/received_events","type":"User","site_admin":false},"created_at":"2017-06-24T05:44:05Z","updated_at":"2017-06-24T05:44:05Z","body":"I can still reproduce this with commit 9f7a29e, or at least something that resembles the description in the first comment.\r\n\r\nSteps to reproduce:\r\n\r\n1. Create a new buffer\r\n2. Paste the following text into it:\r\n\r\n       1abcdefg\r\n       2\r\n       3\r\n       4\r\n\r\n    The line with `4` should be the last line in the file (no trailing `\\n` causing a blank line afterward)\r\n4. Reshape the buffer so only the first three lines are visible (the line with `4` is scrolled off the bottom). It should look like this:\r\n\r\n       1abcdefg\r\n       2\r\n       3\r\n\r\n5. Rotate the scroll wheel one \"notch\" to scroll down by a line\r\n\r\nExpected result:\r\n\r\n* The first line is scrolled off the top, and the last line scrolls into view:\r\n\r\n       2\r\n       3\r\n       4\r\n\r\nActual result:\r\n\r\n* `1a` disappears from the beginning of the first line, but no scrolling occurs:\r\n\r\n       bcdefg\r\n       2\r\n       3\r\n\r\n* The next click of the scroll wheel removes `bc`, the one after that removes `de`,  then `fg` (so the first line appears empty), *then* scrolling occurs.\r\n* Scrolling up once restores the full content of the first line, no matter how much of the first line is hidden\r\n* If you remove the `g` from the first line (so it has an odd number of characters), you can scroll down until just `f` is visible, and the buffer scrolls after that (there's no intervening \"first line is blank\" step)\r\n* If, instead of removing `g` from the first line, you add a character after `4` (a trailing `\\n`, or even just `a`), scrolling occurs when the first line contains `fg` (there's no intervening \"first line is blank\" step). Adding a character after 2 or 3 has no effect."}}
{"actor":{"display_login":"Screwtapello"}}