We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a4509a commit fa9d5f1Copy full SHA for fa9d5f1
1 file changed
src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModel.ts
@@ -687,7 +687,7 @@ export class NotebookViewModel extends Disposable implements EditorFoldingStateD
687
this._pushIfAbsent(boundaries, new Position(1, 1));
688
689
for (let sp of splitPoints) {
690
- if (getLineLen(sp.lineNumber) + 1 === sp.column && sp.lineNumber < lineCnt) {
+ if (getLineLen(sp.lineNumber) + 1 === sp.column && sp.column !== 1 /** empty line */ && sp.lineNumber < lineCnt) {
691
sp = new Position(sp.lineNumber + 1, 1);
692
}
693
this._pushIfAbsent(boundaries, sp);
0 commit comments