fix several typos
This commit is contained in:
parent
e1697c2dfd
commit
ccee8e7041
2 changed files with 2 additions and 2 deletions
|
|
@ -625,7 +625,7 @@ function Folding() {
|
||||||
var range = this.getFoldWidgetRange(row);
|
var range = this.getFoldWidgetRange(row);
|
||||||
// sometimes range can be incompatible with existing fold
|
// sometimes range can be incompatible with existing fold
|
||||||
// wouldn't it be better for addFold to return null istead of throwing?
|
// wouldn't it be better for addFold to return null istead of throwing?
|
||||||
if (range && range.end.row < endRow) try {
|
if (range && range.end.row <= endRow) try {
|
||||||
this.addFold("...", range);
|
this.addFold("...", range);
|
||||||
} catch(e) {}
|
} catch(e) {}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ var FoldMode = exports.FoldMode = function() {};
|
||||||
oop.inherits(FoldMode, BaseFoldMode);
|
oop.inherits(FoldMode, BaseFoldMode);
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
this.foldingStartMarker = /^(?:\|={10,}|[\.\/=\-~^+]{4,}|={1,5} )/;
|
this.foldingStartMarker = /^(?:\|={10,}|[\.\/=\-~^+]{4,}\s*$|={1,5} )/;
|
||||||
this.singleLineHeadingRe = /^={1,5}(?=\s+\S)/;
|
this.singleLineHeadingRe = /^={1,5}(?=\s+\S)/;
|
||||||
|
|
||||||
this.getFoldWidget = function(session, foldStyle, row) {
|
this.getFoldWidget = function(session, foldStyle, row) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue