Summary: CodeMirrorEditor should not use a RegExp lineSeparator option. Instead we should leave this option undefined. When no lineSeparator is specified, CodeMirror will effectively split lines on /\r\n?|\n/, but joins on \n when recreating the source text. Regressed in https://trac.webkit.org/changeset/232591.
<rdar://problem/42331640>
Created attachment 345261 [details] Patch
Comment on attachment 345261 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=345261&action=review r=me > Source/WebInspectorUI/ChangeLog:15 > + it detects \n, \r\n, and \r. By specifying a regular expression we > + merely cause problems when CodeMirror uses the supplied lineSeparator > + when joining its array of lines together. Well that stinks.
Comment on attachment 345261 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=345261&action=review >> Source/WebInspectorUI/ChangeLog:15 >> + when joining its array of lines together. > > Well that stinks. Indeed.
Comment on attachment 345261 [details] Patch Clearing flags on attachment: 345261 Committed r233920: <https://trac.webkit.org/changeset/233920>
All reviewed patches have been landed. Closing bug.