@codemirror/language
Advanced tools
Comparing version 0.19.1 to 0.19.2
@@ -0,1 +1,9 @@ | ||
## 0.19.2 (2021-08-11) | ||
### Bug fixes | ||
Fix a bug that caused `indentOnInput` to fire for the wrong kinds of transactions. | ||
Fix a bug that could cause `indentOnInput` to apply its changes incorrectly. | ||
## 0.19.1 (2021-08-11) | ||
@@ -2,0 +10,0 @@ |
@@ -1022,3 +1022,3 @@ import { NodeProp, Tree, TreeFragment, Parser, NodeType } from '@lezer/common'; | ||
return EditorState.transactionFilter.of(tr => { | ||
if (!tr.docChanged || tr.isUserEvent("input.type")) | ||
if (!tr.docChanged || !tr.isUserEvent("input.type")) | ||
return tr; | ||
@@ -1048,3 +1048,3 @@ let rules = tr.startState.languageDataAt("indentOnInput", tr.startState.selection.main.head); | ||
} | ||
return changes.length ? [tr, { changes }] : tr; | ||
return changes.length ? [tr, { changes, sequential: true }] : tr; | ||
}); | ||
@@ -1051,0 +1051,0 @@ } |
{ | ||
"name": "@codemirror/language", | ||
"version": "0.19.1", | ||
"version": "0.19.2", | ||
"description": "Language support infrastructure for the CodeMirror code editor", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
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
110022