codemirror
Advanced tools
Comparing version 5.65.7 to 5.65.8
@@ -24,2 +24,3 @@ // CodeMirror, copyright (c) by Marijn Haverbeke and others | ||
cm.off("swapDoc", onChange); | ||
cm.off("optionChange", optionChange); | ||
} | ||
@@ -35,2 +36,3 @@ if (val) { | ||
cm.on("swapDoc", onChange); | ||
cm.on("optionChange", optionChange); | ||
} | ||
@@ -125,2 +127,6 @@ }); | ||
function optionChange(cm, option) { | ||
if (option == "mode") onChange(cm) | ||
} | ||
function onChange(cm) { | ||
@@ -127,0 +133,0 @@ var state = cm.state.foldGutter; |
@@ -617,3 +617,3 @@ // CodeMirror, copyright (c) by Marijn Haverbeke and others | ||
dv.copyButtons = elt("div", null, "CodeMirror-merge-copybuttons-" + dv.type); | ||
function copyButtons(e) { | ||
var copyButtons = function(e) { | ||
var node = e.target || e.srcElement; | ||
@@ -620,0 +620,0 @@ if (!node.chunk) return; |
@@ -35,3 +35,3 @@ // CodeMirror, copyright (c) by Marijn Haverbeke and others | ||
"Ellipsis", "__debug__"]; | ||
CodeMirror.registerHelper("hintWords", "python", commonKeywords.concat(commonBuiltins)); | ||
CodeMirror.registerHelper("hintWords", "python", commonKeywords.concat(commonBuiltins).concat(["exec", "print"])); | ||
@@ -38,0 +38,0 @@ function top(state) { |
{ | ||
"name": "codemirror", | ||
"version": "5.65.7", | ||
"version": "5.65.8", | ||
"main": "lib/codemirror.js", | ||
@@ -5,0 +5,0 @@ "style": "lib/codemirror.css", |
@@ -69,2 +69,2 @@ // EDITOR CONSTRUCTOR | ||
CodeMirror.version = "5.65.7" | ||
CodeMirror.version = "5.65.8" |
@@ -71,3 +71,3 @@ import { onBlur } from "../display/focus.js" | ||
}) | ||
option("specialChars", /[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g, (cm, val, old) => { | ||
option("specialChars", /[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g, (cm, val, old) => { | ||
cm.state.specialChars = new RegExp(val.source + (val.test("\t") ? "" : "|\t"), "g") | ||
@@ -74,0 +74,0 @@ if (old != Init) cm.refresh() |
@@ -31,2 +31,3 @@ import { operation, runInOp } from "../display/operations.js" | ||
this.composing = null | ||
this.resetting = false | ||
} | ||
@@ -162,4 +163,5 @@ | ||
reset(typing) { | ||
if (this.contextMenuPending || this.composing) return | ||
if (this.contextMenuPending || this.composing && typing) return | ||
let cm = this.cm | ||
this.resetting = true | ||
if (cm.somethingSelected()) { | ||
@@ -175,2 +177,3 @@ this.prevInput = "" | ||
} | ||
this.resetting = false | ||
} | ||
@@ -233,3 +236,3 @@ | ||
// in which case reading its value would be expensive. | ||
if (this.contextMenuPending || !cm.state.focused || | ||
if (this.contextMenuPending || this.resetting || !cm.state.focused || | ||
(hasSelection(input) && !prevInput && !this.composing) || | ||
@@ -236,0 +239,0 @@ cm.isReadOnly() || cm.options.disableInput || cm.state.keySeq) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2955207
66393