diff --git a/TransmitTextEdit.cpp b/TransmitTextEdit.cpp index 00f7f63..920e8f1 100644 --- a/TransmitTextEdit.cpp +++ b/TransmitTextEdit.cpp @@ -245,7 +245,7 @@ void TransmitTextEdit::on_textContentsChanged(int /*pos*/, int rem, int add){ QString normalized = text.normalized(QString::NormalizationForm_KD); QString result; std::copy_if(normalized.begin(), normalized.end(), std::back_inserter(result), [](QChar& c) { - return c.toLatin1() != 0 && (c == 10 || (c > 31 && c < 128)); + return c.toLatin1() != 0 && (c == 10 || c == 0x1A || (c > 31 && c < 128)); }); if(result != text){ diff --git a/jsc.h b/jsc.h index dbb89fc..b46d005 100644 --- a/jsc.h +++ b/jsc.h @@ -40,8 +40,8 @@ public: static const Tuple map[262144]; static const Tuple list[262144]; - static const quint32 prefixSize = 70; - static const Tuple prefix[70]; + static const quint32 prefixSize = 71; + static const Tuple prefix[71]; }; #endif // JSC_H diff --git a/jsc_list.cpp b/jsc_list.cpp index 4516f26..22400a4 100644 --- a/jsc_list.cpp +++ b/jsc_list.cpp @@ -145937,7 +145937,7 @@ const Tuple JSC::list[262144] = { {"JSTR", 4, 190085}, {"JSTOR", 5, 75164}, {"JSTL", 4, 132651}, - {"JSQSO", 5, 72}, + {"\x1A", 1, 72}, // FYI: This used to be JSQSO in JS8 2.0 {"JSQCALL", 7, 73}, {"JSPWIKI", 7, 154802}, {"JSPS", 4, 113215}, @@ -262167,7 +262167,7 @@ const Tuple JSC::list[262144] = { {"!", 1, 28}, }; -const Tuple JSC::prefix[70] = { +const Tuple JSC::prefix[71] = { {"!", 1, 262143}, {"\"", 1, 262142}, {"#", 1, 262141}, @@ -262211,6 +262211,7 @@ const Tuple JSC::prefix[70] = { {"G", 10672, 168185}, {"H", 9060, 159125}, {"I", 9503, 149622}, + {"\x1A", 1, 145916}, {"J", 4262, 145360}, {"K", 7986, 137374}, {"L", 12241, 125133}, diff --git a/jsc_map.cpp b/jsc_map.cpp index 6c0dc70..56ea2e8 100644 --- a/jsc_map.cpp +++ b/jsc_map.cpp @@ -93,8 +93,8 @@ const Tuple JSC::map[262144] = { {"\n", 1, 69}, // FYI: this used to be "\" in JS8 1.0 {"JS8", 3, 70}, {"JS8CALL", 7, 71}, - {"JSQSO", 5, 72}, - {"JSQCALL", 7, 73}, + {"\x1A", 1, 72}, // FYI: this used to be JSQSO in JS8 1.0, it is now a substitute flag + {"JSQCALL", 7, 73}, {"JORDAN", 6, 74}, {"KN4CRD", 6, 75}, {"599", 3, 76},