@codemirror/comment
Advanced tools
Comparing version 0.17.2 to 0.17.3
@@ -0,1 +1,7 @@ | ||
## 0.17.3 (2021-02-25) | ||
### Bug fixes | ||
Don't change lines that have the end of a range selection directly at their start when line commenting. | ||
## 0.17.2 (2021-02-18) | ||
@@ -2,0 +8,0 @@ |
@@ -119,3 +119,3 @@ import { EditorSelection } from '@codemirror/state'; | ||
let line = state.doc.lineAt(pos); | ||
if (line.from > prevLine) { | ||
if (line.from > prevLine && (from == to || to > line.from)) { | ||
prevLine = line.from; | ||
@@ -122,0 +122,0 @@ let token = getConfig(state, pos).line; |
{ | ||
"name": "@codemirror/comment", | ||
"version": "0.17.2", | ||
"version": "0.17.3", | ||
"description": "Commenting and uncommenting commands for the CodeMirror code editor", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
36379
39477