From 402b9a701fbc1d550b8efaa6bd913150e6452637 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net>
Date: Mon, 3 Mar 2025 16:10:38 -0500
Subject: [PATCH] Don't subtract one from TOTAL_TEXT anymore

---
 exec/textedit.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/exec/textedit.js b/exec/textedit.js
index b268712d20..e8b0bb0e2a 100644
--- a/exec/textedit.js
+++ b/exec/textedit.js
@@ -345,8 +345,7 @@ function get_tvals() {
 	for (i in tvals) {
 		tnames[tvals[i]] = i;
 	}
-	// TODO: Why is this one higher than the last?
-	last_entry = tvals.TOTAL_TEXT - 1;
+	last_entry = tvals.TOTAL_TEXT;
 }
 
 function newmsg(updpos)
-- 
GitLab