{"action":"closed","issue":{"url":"https://api.github.com/repos/codemirror/CodeMirror/issues/3318","labels_url":"https://api.github.com/repos/codemirror/CodeMirror/issues/3318/labels{/name}","comments_url":"https://api.github.com/repos/codemirror/CodeMirror/issues/3318/comments","events_url":"https://api.github.com/repos/codemirror/CodeMirror/issues/3318/events","html_url":"https://github.com/codemirror/CodeMirror/issues/3318","id":86441210,"number":3318,"title":"How could I force to redraw the highlight of all the lines?","user":{"login":"sunstrd","id":12807731,"avatar_url":"https://avatars.githubusercontent.com/u/12807731?v=3","gravatar_id":"","url":"https://api.github.com/users/sunstrd","html_url":"https://github.com/sunstrd","followers_url":"https://api.github.com/users/sunstrd/followers","following_url":"https://api.github.com/users/sunstrd/following{/other_user}","gists_url":"https://api.github.com/users/sunstrd/gists{/gist_id}","starred_url":"https://api.github.com/users/sunstrd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunstrd/subscriptions","organizations_url":"https://api.github.com/users/sunstrd/orgs","repos_url":"https://api.github.com/users/sunstrd/repos","events_url":"https://api.github.com/users/sunstrd/events{/privacy}","received_events_url":"https://api.github.com/users/sunstrd/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-09T04:24:56Z","updated_at":"2015-06-11T09:40:11Z","closed_at":"2015-06-11T09:40:11Z","body":"I was writing a mode recently of which one function is to memorize all the variables declared and highlight them when tokenized in the stream. This functon now works normally for most times, but i've found an issue, for example:\r\n\r\nwhen a variable is newly declared in line 20 (with line 20 getting changed), the same variables from line 20 to the end will be immediately highlighted, but those from the beginning to line 19 will remain still.\r\n\r\nI understand that for most times redraw merely from the line that is newly changed will save a lot, but on this occasion I just need CodeMirror redraw the highlight from the beginning to the end once I change some line. I've read the Manual and scanned the codemirror.js and I've got nothing useful. Sincerely looking for a way out :)"}}