@codemirror/language
Advanced tools
Comparing version 0.19.7 to 0.19.8
@@ -0,1 +1,7 @@ | ||
## 0.19.8 (2022-03-03) | ||
### Bug fixes | ||
Fix an issue that could cause indentation logic to use the wrong line content when indenting multiple lines at once. | ||
## 0.19.7 (2021-12-02) | ||
@@ -2,0 +8,0 @@ |
@@ -821,5 +821,7 @@ import { NodeProp, Tree, TreeFragment, Parser, NodeType } from '@lezer/common'; | ||
let line = this.state.doc.lineAt(pos); | ||
let { simulateBreak } = this.options; | ||
let { simulateBreak, simulateDoubleBreak } = this.options; | ||
if (simulateBreak != null && simulateBreak >= line.from && simulateBreak <= line.to) { | ||
if (bias < 0 ? simulateBreak < pos : simulateBreak <= pos) | ||
if (simulateDoubleBreak && simulateBreak == pos) | ||
return { text: "", from: pos }; | ||
else if (bias < 0 ? simulateBreak < pos : simulateBreak <= pos) | ||
return { text: line.text.slice(simulateBreak - line.from), from: simulateBreak }; | ||
@@ -826,0 +828,0 @@ else |
{ | ||
"name": "@codemirror/language", | ||
"version": "0.19.7", | ||
"version": "0.19.8", | ||
"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
116204
2916