From 912ccead6576c2b4e8bdc22ddfc484da13a02ea3 Mon Sep 17 00:00:00 2001 From: rebornix Date: Tue, 26 Oct 2021 15:14:39 -0700 Subject: [PATCH] wrong index check. --- .../contrib/notebook/browser/contrib/navigation/arrow.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }