Skip to content

Commit fa9d5f1

Browse files
committed
1 parent 7a4509a commit fa9d5f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ export class NotebookViewModel extends Disposable implements EditorFoldingStateD
687687
this._pushIfAbsent(boundaries, new Position(1, 1));
688688

689689
for (let sp of splitPoints) {
690-
if (getLineLen(sp.lineNumber) + 1 === sp.column && sp.lineNumber < lineCnt) {
690+
if (getLineLen(sp.lineNumber) + 1 === sp.column && sp.column !== 1 /** empty line */ && sp.lineNumber < lineCnt) {
691691
sp = new Position(sp.lineNumber + 1, 1);
692692
}
693693
this._pushIfAbsent(boundaries, sp);

0 commit comments

Comments
 (0)