handle case when fold is on single line
This commit is contained in:
parent
ac43a82c02
commit
c491ec9a5b
1 changed files with 9 additions and 0 deletions
|
|
@ -710,6 +710,15 @@ function Folding() {
|
|||
|
||||
var range = this.getFoldWidgetRange(row);
|
||||
if (range) {
|
||||
// sometimes singleline folds can be missed by the code above
|
||||
if (!range.isMultiLine()) {
|
||||
fold = this.getFoldAt(range.start.row, range.start.column, 1);
|
||||
if (fold && range.isEequal(fold.range)) {
|
||||
this.removeFold(fold);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (!onlySubfolds)
|
||||
this.addFold("...", range);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue