Step-by-step: 1. Type following: function foo(a, b){|} 2. Hit enter Expected: function foo(a, b){ | } Actual: function foo(a, b){ |}
Created attachment 192735 [details] Patch
Comment on attachment 192735 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=192735&action=review > Source/WebCore/inspector/front-end/CodeMirrorTextEditor.js:493 > + if (line.substr(cursor.ch - 1, 2) === "{}") { You should if the selection range is empty here.
Created attachment 192931 [details] Patch
Comment on attachment 192931 [details] Patch Clearing flags on attachment: 192931 Committed r145724: <http://trac.webkit.org/changeset/145724>
All reviewed patches have been landed. Closing bug.