{"action":"created","issue":{"url":"https://api.github.com/repos/codemirror/CodeMirror/issues/4286","repository_url":"https://api.github.com/repos/codemirror/CodeMirror","labels_url":"https://api.github.com/repos/codemirror/CodeMirror/issues/4286/labels{/name}","comments_url":"https://api.github.com/repos/codemirror/CodeMirror/issues/4286/comments","events_url":"https://api.github.com/repos/codemirror/CodeMirror/issues/4286/events","html_url":"https://github.com/codemirror/CodeMirror/issues/4286","id":181452900,"number":4286,"title":"`flattenSpans` affects entire editor and not just specific mode","user":{"login":"firasdib","id":1335165,"avatar_url":"https://avatars.githubusercontent.com/u/1335165?v=3","gravatar_id":"","url":"https://api.github.com/users/firasdib","html_url":"https://github.com/firasdib","followers_url":"https://api.github.com/users/firasdib/followers","following_url":"https://api.github.com/users/firasdib/following{/other_user}","gists_url":"https://api.github.com/users/firasdib/gists{/gist_id}","starred_url":"https://api.github.com/users/firasdib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/firasdib/subscriptions","organizations_url":"https://api.github.com/users/firasdib/orgs","repos_url":"https://api.github.com/users/firasdib/repos","events_url":"https://api.github.com/users/firasdib/events{/privacy}","received_events_url":"https://api.github.com/users/firasdib/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-06T15:46:03Z","updated_at":"2016-10-06T17:31:27Z","closed_at":"2016-10-06T17:31:27Z","body":"It seems that this _mode specific_ options affects ALL modes and the entire editor, not just that mode. I have several modes running, and an overlay. With the modes that are running I want to combine equal spans, to not create too many in the editor. The overlay however I do not want to do this, so I set `flattenSpans: false` for that overlay mode. However, this seems to affect all marks, modes and overlays. I would have expected this to _only_ affect the rules provided from the overlay with this option set to false."},"comment":{"url":"https://api.github.com/repos/codemirror/CodeMirror/issues/comments/252033090","html_url":"https://github.com/codemirror/CodeMirror/issues/4286#issuecomment-252033090","issue_url":"https://api.github.com/repos/codemirror/CodeMirror/issues/4286","id":252033090,"user":{"login":"marijnh","id":144427,"avatar_url":"https://avatars.githubusercontent.com/u/144427?v=3","gravatar_id":"","url":"https://api.github.com/users/marijnh","html_url":"https://github.com/marijnh","followers_url":"https://api.github.com/users/marijnh/followers","following_url":"https://api.github.com/users/marijnh/following{/other_user}","gists_url":"https://api.github.com/users/marijnh/gists{/gist_id}","starred_url":"https://api.github.com/users/marijnh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marijnh/subscriptions","organizations_url":"https://api.github.com/users/marijnh/orgs","repos_url":"https://api.github.com/users/marijnh/repos","events_url":"https://api.github.com/users/marijnh/events{/privacy}","received_events_url":"https://api.github.com/users/marijnh/received_events","type":"User","site_admin":false},"created_at":"2016-10-06T17:31:27Z","updated_at":"2016-10-06T17:31:27Z","body":"Multiple modes wrapped in an overlay count as a _single_ mode as far as the editor is concerned, so yes, you can't have one of your overlaid modes have a different behavior wrt this option than the rest."}}
{"actor":{"display_login":"marijnh"}}