From a1dee4f220163604ba1fb58d833bec40efcce0d7 Mon Sep 17 00:00:00 2001 From: MeexReay Date: Fri, 21 Mar 2025 21:42:14 +0300 Subject: [PATCH] arrow right fix --- app/kfc/kfc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/kfc/kfc.js b/app/kfc/kfc.js index fa32723..166529c 100644 --- a/app/kfc/kfc.js +++ b/app/kfc/kfc.js @@ -68,7 +68,7 @@ async function main(args) { } else if (event.key == "ArrowLeft") { pos[0] = Math.max(0, pos[0] - 1) } else if (event.key == "ArrowRight") { - pos[0] = Math.min(content.split("\n")[y].length - 1, pos[0] + 1) + pos[0] = Math.min(content.split("\n")[y].length, pos[0] + 1) } else if (event.key == "Escape") { mode = "normal" } else if (event.key == "Insert") {