{"issue":{"created_at":"2011-12-10T03:15:43Z","state":"open","updated_at":"2011-12-11T14:52:18Z","comments":1,"user":{"gravatar_id":"3869e93ce6b2a22e37cf13281d9e6f75","id":175836,"url":"https://api.github.com/users/LeaVerou","avatar_url":"https://secure.gravatar.com/avatar/3869e93ce6b2a22e37cf13281d9e6f75?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"LeaVerou"},"body":"Sometimes you have to press Enter twice to get a newline after a semicolon, but that doesn't always happen. If anyone can figure out a series of steps that reproduces the problem every time, let me know.","assignee":null,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"id":2509596,"number":2,"labels":[],"title":"Enter after semicolon doesn't always work","html_url":"https://github.com/LeaVerou/dabblet/issues/2","closed_at":null,"url":"https://api.github.com/repos/LeaVerou/dabblet/issues/2","milestone":null},"action":"created","comment":{"created_at":"2011-12-11T14:52:18Z","updated_at":"2011-12-11T14:52:18Z","user":{"gravatar_id":"5a1b1f09f0bb170afcdc8a58ba52cb85","id":177485,"url":"https://api.github.com/users/kizu","avatar_url":"https://secure.gravatar.com/avatar/5a1b1f09f0bb170afcdc8a58ba52cb85?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"kizu"},"body":"It seems that the semicolon isn't the crucial to reproduce.\r\n\r\nIt reproduced to me when you press enter after some symbols at the end of block with contenteditable and there were no whitespaces at the start of the line.\r\n\r\nSo, in empty pane writing something (without spaces/tabs at start) in the first line and pressing enter would reproduce the bug.\r\n\r\nAlso, there is a bug that relates to this: when you're on the last line and didn't press the enter for the first time, them deleting everything in this line would place the caret at the beginning of code block.\r\n\r\nSo, after writing `a+enter+enter+b` you could see the following (“|” is a caret):\r\n\r\n    a\r\n    b|\r\n\r\nThen pressing backspace the `b` would be deleted, but the caret would be moved to the start:\r\n\r\n    |a\r\n    \r\n\r\nBut if you'd press the enter after `b` (which won't create a new line), then pressing backspace wouldn't move the caret.","id":3097508,"url":"https://api.github.com/repos/LeaVerou/dabblet/issues/comments/3097508"}}