Skip to content
Snippets Groups Projects
Commit 79912fd9 authored by Eric Oulashin's avatar Eric Oulashin Committed by Rob Swindell
Browse files

DDMsgReader: Fix in reader mode for refreshing the message area after closing another window

parent 2ccc75e2
No related branches found
No related tags found
2 merge requests!463MRC mods by Codefenix (2024-10-20),!355DDMsgReader: Fix in reader mode for refreshing the message area after closing another window
...@@ -44,6 +44,10 @@ ...@@ -44,6 +44,10 @@
* 2023-10-25 Eric Oulashin Version 1.83 * 2023-10-25 Eric Oulashin Version 1.83
* Personal emails to the sysop received as "sysop" (or starting with "sysop") * Personal emails to the sysop received as "sysop" (or starting with "sysop")
* are now correctly identified and marked as read when read * are now correctly identified and marked as read when read
* 2023-10-26 Eric Oulashin Version 1.84
* Fix in reader mode for refreshing the message area after
* closing another window (necessary with recent changes to
* substrWithAttrCodes())
*/ */
   
"use strict"; "use strict";
...@@ -148,8 +152,8 @@ var ansiterm = require("ansiterm_lib.js", 'expand_ctrl_a'); ...@@ -148,8 +152,8 @@ var ansiterm = require("ansiterm_lib.js", 'expand_ctrl_a');
   
   
// Reader version information // Reader version information
var READER_VERSION = "1.83"; var READER_VERSION = "1.84";
var READER_DATE = "2023-10-25"; var READER_DATE = "2023-10-26";
   
// Keyboard key codes for displaying on the screen // Keyboard key codes for displaying on the screen
var UP_ARROW = ascii(24); var UP_ARROW = ascii(24);
...@@ -16400,6 +16404,8 @@ function DigDistMsgReader_RefreshMsgAreaRectangle(pTxtLines, pTopLineIdx, pTopLe ...@@ -16400,6 +16404,8 @@ function DigDistMsgReader_RefreshMsgAreaRectangle(pTxtLines, pTopLineIdx, pTopLe
// If the current text line index is within the array of text lines, then output the section of the // If the current text line index is within the array of text lines, then output the section of the
// text line. Otherwise, output an empty string. // text line. Otherwise, output an empty string.
if (txtLineIdx < pTxtLines.length) if (txtLineIdx < pTxtLines.length)
{
if (txtLineStartIdx < console.strlen(pTxtLines[txtLineIdx]))
{ {
// Get the text attributes up to the current point and output them // Get the text attributes up to the current point and output them
//console.print(getAllEditLineAttrsUntilLineIdx(pTxtLines, txtLineIdx, true, txtLineStartIdx)); //console.print(getAllEditLineAttrsUntilLineIdx(pTxtLines, txtLineIdx, true, txtLineStartIdx));
...@@ -16411,6 +16417,9 @@ function DigDistMsgReader_RefreshMsgAreaRectangle(pTxtLines, pTopLineIdx, pTopLe ...@@ -16411,6 +16417,9 @@ function DigDistMsgReader_RefreshMsgAreaRectangle(pTxtLines, pTopLineIdx, pTopLe
lineText += format("\x01n%*s", pWidth - printableTxtLen, ""); lineText += format("\x01n%*s", pWidth - printableTxtLen, "");
console.print(lineText); console.print(lineText);
} }
else // The start index is beyond the length of the string, so print an empty string
printf(emptyFormatStr, "");
}
else // We've printed all the remaining text lines, so now print an empty string. else // We've printed all the remaining text lines, so now print an empty string.
printf(emptyFormatStr, ""); printf(emptyFormatStr, "");
   
......
Digital Distortion Message Reader Digital Distortion Message Reader
Version 1.83 Version 1.84
Release date: 2023-10-25 Release date: 2023-10-26
by by
......
...@@ -5,6 +5,9 @@ Revision History (change log) ...@@ -5,6 +5,9 @@ Revision History (change log)
============================= =============================
Version Date Description Version Date Description
------- ---- ----------- ------- ---- -----------
1.84 2023-10-26 Fix in reader mode for refreshing the message area after
closing another window (necessary with recent changes to
substrWithAttrCodes())
1.83 2023-10-25 Personal emails to the sysop received as "sysop" (or 1.83 2023-10-25 Personal emails to the sysop received as "sysop" (or
starting with "sysop") are now correctly identified and starting with "sysop") are now correctly identified and
marked as read when read marked as read when read
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment