diff --git a/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.ts b/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.ts index a82d730c183..d6ea5ca6b22 100644 --- a/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.ts +++ b/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.ts @@ -63,7 +63,7 @@ registerAction2(class extends NotebookCellAction { return; } - if (idx >= editor.getLength()) { + if (idx >= editor.getLength() - 1) { // last one return; }