From 824a8e890085fe73c7d892efdbd96683861aea07 Mon Sep 17 00:00:00 2001
From: nightfox <>
Date: Wed, 17 Feb 2016 03:49:43 +0000
Subject: [PATCH] Bug fixes related to updating the page number on the screen
 for the message group/file libraries when using the up & down arrows to go to
 the next/previous page.  Also made a more general page number update fix for
 the file area chooser on the file library screen.

---
 xtrn/DDAreaChoosers/DDFileAreaChooser.js | 2 +-
 xtrn/DDAreaChoosers/DDMsgAreaChooser.js  | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/xtrn/DDAreaChoosers/DDFileAreaChooser.js b/xtrn/DDAreaChoosers/DDFileAreaChooser.js
index d93c9a156e..92d6b53ef1 100644
--- a/xtrn/DDAreaChoosers/DDFileAreaChooser.js
+++ b/xtrn/DDAreaChoosers/DDFileAreaChooser.js
@@ -1393,7 +1393,7 @@ function DDFileAreaChooser_updatePageNumInHeader(pPageNum, pNumPages, pFileLib,
 
   if (pFileLib)
   {
-    console.gotoxy(30, 1+this.areaChangeHdrLines.length);
+    console.gotoxy(29, 1+this.areaChangeHdrLines.length);
     console.print("\1n" + this.colors.header + pPageNum + " of " + pNumPages + ")   ");
   }
   else
diff --git a/xtrn/DDAreaChoosers/DDMsgAreaChooser.js b/xtrn/DDAreaChoosers/DDMsgAreaChooser.js
index 3c90dc3ba9..fc67e3b18a 100644
--- a/xtrn/DDAreaChoosers/DDMsgAreaChooser.js
+++ b/xtrn/DDAreaChoosers/DDMsgAreaChooser.js
@@ -507,6 +507,7 @@ function DDMsgAreaChooser_selectMsgArea_Lightbar(pChooseGroup)
 						// refresh the list on the screen.
 						topMsgGrpIndex -= numItemsPerPage;
 						bottomMsgGrpIndex = getBottommostGrpIndex(topMsgGrpIndex, numItemsPerPage);
+						this.updatePageNumInHeader(pageNum, numPages, true, false);
 						this.ListScreenfulOfMsgGrps(topMsgGrpIndex, listStartRow, listEndRow, false, true);
 					}
 					else
@@ -530,6 +531,7 @@ function DDMsgAreaChooser_selectMsgArea_Lightbar(pChooseGroup)
 						// refresh the list on the screen.
 						topMsgGrpIndex += numItemsPerPage;
 						bottomMsgGrpIndex = getBottommostGrpIndex(topMsgGrpIndex, numItemsPerPage);
+						this.updatePageNumInHeader(pageNum+1, numPages, true, false);
 						this.ListScreenfulOfMsgGrps(topMsgGrpIndex, listStartRow,
 													listEndRow, false, true);
 					}
-- 
GitLab