Skip to content
Snippets Groups Projects
Commit 88faabb5 authored by Eric Oulashin's avatar Eric Oulashin
Browse files

DDMsgReader: Copy-paste fix for section(s) of code for editing a local user account while reading

parent 6b0df81a
No related branches found
No related tags found
1 merge request!378DDMsgReader: Copy-paste fix for section(s) of code for editing a local user account while reading
Pipeline #5064 passed
......@@ -5785,13 +5785,13 @@ function DigDistMsgReader_ReadMessageEnhanced_Scrollable(msgHeader, allowChgMsgA
// Refresh things on the screen
console.clear("\x01n");
// Display the message header and key help line again
pReader.DisplayEnhancedMsgHdr(msgHeader, pOffset+1, 1);
pReader.DisplayEnhancedMsgReadHelpLine(console.screen_rows, allowChgMsgArea);
this.DisplayEnhancedMsgHdr(msgHeader, pOffset+1, 1);
this.DisplayEnhancedMsgReadHelpLine(console.screen_rows, allowChgMsgArea);
// Display the scrollbar again to refresh it on the screen
if (pReader.userSettings.useEnhReaderScrollbar)
if (this.userSettings.useEnhReaderScrollbar)
{
retObj.solidBlockStartRow = pReader.msgAreaTop + Math.floor(numNonSolidScrollBlocks * fractionToLastPage);
pReader.DisplayEnhancedReaderWholeScrollbar(solidBlockStartRow, numSolidScrollBlocks);
retObj.solidBlockStartRow = this.msgAreaTop + Math.floor(numNonSolidScrollBlocks * fractionToLastPage);
this.DisplayEnhancedReaderWholeScrollbar(solidBlockStartRow, numSolidScrollBlocks);
}
else
{
......@@ -6209,17 +6209,18 @@ function DigDistMsgReader_ReadMessageEnhanced_Scrollable(msgHeader, allowChgMsgA
}
break;
case this.readerOpMenuOptValues.editAuthorUserAccount: // Edit the local user account
console.gotoxy(1, console.screen_rows);
userEdit(msgHeader, pOffset, this);
// Refresh things on the screen
console.clear("\x01n");
// Display the message header and key help line again
pReader.DisplayEnhancedMsgHdr(msgHeader, pOffset+1, 1);
pReader.DisplayEnhancedMsgReadHelpLine(console.screen_rows, allowChgMsgArea);
this.DisplayEnhancedMsgHdr(msgHeader, pOffset+1, 1);
this.DisplayEnhancedMsgReadHelpLine(console.screen_rows, allowChgMsgArea);
// Display the scrollbar again to refresh it on the screen
if (pReader.userSettings.useEnhReaderScrollbar)
if (this.userSettings.useEnhReaderScrollbar)
{
retObj.solidBlockStartRow = pReader.msgAreaTop + Math.floor(numNonSolidScrollBlocks * fractionToLastPage);
pReader.DisplayEnhancedReaderWholeScrollbar(solidBlockStartRow, numSolidScrollBlocks);
retObj.solidBlockStartRow = this.msgAreaTop + Math.floor(numNonSolidScrollBlocks * fractionToLastPage);
this.DisplayEnhancedReaderWholeScrollbar(solidBlockStartRow, numSolidScrollBlocks);
}
else
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment