diff --git a/exec/SlyEdit.js b/exec/SlyEdit.js index 0827abb44bd68cc443bd60b7fb50ae54592a50b7..4b7e2c82764aac4dc70f9f7350361def70c800b0 100644 --- a/exec/SlyEdit.js +++ b/exec/SlyEdit.js @@ -32,6 +32,17 @@ * to list when the user tries to list them, the cursor * now returns to its proper place after displaying * the error. + * 2013-11-25 Eric Oulashin Version 1.39 Beta + * Minor bug fix in wrapQuoteLinesUsingAuthorInitials() in + * SlyEdit_Misc.js starting on line 2739: Added more + * checks to ensure that the gQuoteLines object it + * references is valid. + * Minor bug fix: Updated the Ice-style color display + * for the control key help text in the lower right so + * that normal/high attributes don't interfere with the + * high blue color of the parenthesis. + * 2013-11-27 Eric Oulashin Version 1.39 + * Releasing this version after having done some testing. */ /* Command-line arguments: @@ -109,8 +120,8 @@ if (!console.term_supports(USER_ANSI)) } // Constants -const EDITOR_VERSION = "1.38"; -const EDITOR_VER_DATE = "2013-11-11"; +const EDITOR_VERSION = "1.39"; +const EDITOR_VER_DATE = "2013-11-27"; // Program variables diff --git a/exec/SlyEdit_IceStuff.js b/exec/SlyEdit_IceStuff.js index 850036b7181f03dc8a53d32d8098f141326ddd41..5e8c5f24bd0ba1336a98bfa488037ae28bd0109f 100644 --- a/exec/SlyEdit_IceStuff.js +++ b/exec/SlyEdit_IceStuff.js @@ -49,6 +49,11 @@ * 2013-10-17 Eric Oulashin Bug fix: Updated readColorConfig() to make a backup of * the menuOptClassicColors setting and set it back in the * iceColors object after reading & setting the colors. + * Bug fix in DisplayTextAreaBottomBorder_IceStyle() in + * SlyEdit_IceStuff.js to ensure that the parenthesis in the + * CTRL key help text at the right in the bottom border are + * correctly displayed with a high blue color, regardless of + * what is specified in the color theme file. */ load("sbbsdefs.js"); @@ -328,16 +333,16 @@ function DisplayTextAreaBottomBorder_IceStyle(pLineNum, pUseQuotes, pEditLeft, p if (typeof(DisplayTextAreaBottomBorder_IceStyle.border) == "undefined") { // Build the string of CTRL key combinations that will be displayed - var ctrlKeyHelp = gConfigSettings.iceColors.KeyInfoLabelColor - + "CTRL b(nwAhb)n" + var ctrlKeyHelp = "n" + gConfigSettings.iceColors.KeyInfoLabelColor + + "CTRL nhb(nwAhb)n" + gConfigSettings.iceColors.KeyInfoLabelColor + "Abort"; if (pUseQuotes) { - ctrlKeyHelp += " b(nwQhb)n" + ctrlKeyHelp += " nhb(nwQhb)n" + gConfigSettings.iceColors.KeyInfoLabelColor + "Quote"; } - ctrlKeyHelp += " b(nwZhb)n" + gConfigSettings.iceColors.KeyInfoLabelColor - + "Save"; + ctrlKeyHelp += " nhb(nwZhb)n" + + gConfigSettings.iceColors.KeyInfoLabelColor + "Save"; // Start the border text with the first 2 border characters // The beginning of this line shows that SlyEdit is registered diff --git a/exec/SlyEdit_Misc.js b/exec/SlyEdit_Misc.js index 774fd7ab3911840c01416e3c96789b12fbbcaa35..dd0527277a5616d62ab9f940c507d65b3704e2de 100644 --- a/exec/SlyEdit_Misc.js +++ b/exec/SlyEdit_Misc.js @@ -78,6 +78,14 @@ * info objects down when a new line is added. * 2013-11-10 Eric Oulashin Made some more refinements, mainly for * wrapQuoteLinesUsingAuthorInitials(). + * 2013-11-25 Eric Oulashin Minor bug fix in wrapQuoteLinesUsingAuthorInitials() + * starting on line 2739: Added more checks to ensure + * that the gQuoteLines object it references is valid. + * Bug fix in DisplayTextAreaBottomBorder_IceStyle() in + * SlyEdit_IceStuff.js to ensure that the parenthesis in the + * CTRL key help text at the right in the bottom border are + * correctly displayed with a high blue color, regardless of + * what is specified in the color theme file. */ // Note: These variables are declared with "var" instead of "const" to avoid @@ -2733,8 +2741,16 @@ function wrapQuoteLinesUsingAuthorInitials(pIndentQuoteLines) sectionInfo.quoteLevel = lastQuoteLevel; // If the end array index is for a blank quote line, then // adjust it to the first non-blank quote line before it. - while (gQuoteLines[sectionInfo.endArrIndex-1].length == 0) + while ((sectionInfo.endArrIndex-1 >= 0) && + (typeof(gQuoteLines[sectionInfo.endArrIndex-1]) == "string") && + gQuoteLines[sectionInfo.endArrIndex-1].length == 0) + { --sectionInfo.endArrIndex; + } + // If we moved sectionInfo.endArrIndex back too far, then increment it. + while (typeof(gQuoteLines[sectionInfo.endArrIndex]) != "string") + ++sectionInfo.endArrIndex; + quoteSections.push(sectionInfo); startArrIndex = quoteLineIndex;