mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
Update to latest CodeMirror:
* Explicitly call markClean() after clearHistory() since the two are no longer tied * Pass new "precise" parameter to getTokenAt() to ensure tokens are properly updated after edits (addresses #2335)
This commit is contained in:
1 parent
75721fe5fc
commit
157775b996
11 files changed
+22
-27
No files matched your search
@@ -119,9 +119,9 @@ define(function (require, exports, module) {
|
||||
var cm = this.editor._codeMirror;
|
||||
|
||||
if (cursor) {
|
||||
return cm.getTokenAt(cursor);
|
||||
return cm.getTokenAt(cursor, true);
|
||||
} else {
|
||||
return cm.getTokenAt(this.getCursor());
|
||||
return cm.getTokenAt(this.getCursor(), true);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user