Skip to content

Commit 912ccea

Browse files
committed
wrong index check.
1 parent a321987 commit 912ccea

File tree

1 file changed

+1
-1
lines changed
  • src/vs/workbench/contrib/notebook/browser/contrib/navigation

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ registerAction2(class extends NotebookCellAction {
6363
return;
6464
}
6565

66-
if (idx >= editor.getLength()) {
66+
if (idx >= editor.getLength() - 1) {
6767
// last one
6868
return;
6969
}

0 commit comments

Comments
 (0)