foxygit / nfo Log in
commit 1ecc2c1c5051c6b384eeea2341ddeaed6238cb9c
Author:     MrjensK <jens.se@icloud.com>
AuthorDate: Mon Apr 20 20:31:15 2026 +0200
Commit:     MrjensK <jens.se@icloud.com>
CommitDate: Mon Apr 20 20:31:15 2026 +0200

    fixat tabbarna
---
 index.html | 1 +
 1 file changed, 1 insertion(+)

diff --git a/index.html b/index.html
index 7f732c8..7d57242 100644
--- a/index.html
+++ b/index.html
@@ -927,6 +927,7 @@ function pasteClipboard() {

 // ── Tabs ──────────────────────────────────────────────────────────────────────
 function saveCurrentTab() {
+  if (activeTab < 0 || activeTab >= tabs.length) return;
   const t = tabs[activeTab];
   t.name = lastFile ? lastFile.name : t.name;
   t.sparseMap=sparseMap; t.lastFile=lastFile; t.lastBytes=lastBytes;