@codemirror/language 0.19.9 → 0.19.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1067,7 +1067,7 @@ added at the start of a line.
|
|
|
1067
1067
|
*/
|
|
1068
1068
|
function indentOnInput() {
|
|
1069
1069
|
return state.EditorState.transactionFilter.of(tr => {
|
|
1070
|
-
if (!tr.docChanged || !tr.isUserEvent("input.type"))
|
|
1070
|
+
if (!tr.docChanged || !tr.isUserEvent("input.type") && !tr.isUserEvent("input.complete"))
|
|
1071
1071
|
return tr;
|
|
1072
1072
|
let rules = tr.startState.languageDataAt("indentOnInput", tr.startState.selection.main.head);
|
|
1073
1073
|
if (!rules.length)
|
package/dist/index.js
CHANGED
|
@@ -1063,7 +1063,7 @@ added at the start of a line.
|
|
|
1063
1063
|
*/
|
|
1064
1064
|
function indentOnInput() {
|
|
1065
1065
|
return EditorState.transactionFilter.of(tr => {
|
|
1066
|
-
if (!tr.docChanged || !tr.isUserEvent("input.type"))
|
|
1066
|
+
if (!tr.docChanged || !tr.isUserEvent("input.type") && !tr.isUserEvent("input.complete"))
|
|
1067
1067
|
return tr;
|
|
1068
1068
|
let rules = tr.startState.languageDataAt("indentOnInput", tr.startState.selection.main.head);
|
|
1069
1069
|
if (!rules.length)
|