We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7b4edf commit 25bcc71Copy full SHA for 25bcc71
lib/codemirror.js
@@ -5422,8 +5422,8 @@
5422
var fromCmp = cmp(found.from, from) || extraLeft(sp.marker) - extraLeft(marker);
5423
var toCmp = cmp(found.to, to) || extraRight(sp.marker) - extraRight(marker);
5424
if (fromCmp >= 0 && toCmp <= 0 || fromCmp <= 0 && toCmp >= 0) continue;
5425
- if (fromCmp <= 0 && (cmp(found.to, from) || extraRight(sp.marker) - extraLeft(marker)) > 0 ||
5426
- fromCmp >= 0 && (cmp(found.from, to) || extraLeft(sp.marker) - extraRight(marker)) < 0)
+ if (fromCmp <= 0 && (cmp(found.to, from) > 0 || (sp.marker.inclusiveRight && marker.inclusiveLeft)) ||
+ fromCmp >= 0 && (cmp(found.from, to) < 0 || (sp.marker.inclusiveLeft && marker.inclusiveRight)))
5427
return true;
5428
}
5429
0 commit comments