mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[reader] FIxed "syntax error" with colors when going backward
This commit is contained in:
@@ -706,7 +706,11 @@ bool WordWrapTextView::updateTextColorForward(const char * colorStart) const {
|
||||
|
||||
bool WordWrapTextView::updateTextColorBackward(const char * colorStart) const {
|
||||
|
||||
if (*(colorStart++) != '\\') {
|
||||
if (*(++colorStart) != '\\') {
|
||||
if (*(colorStart + 1) == '%' || *(colorStart + 2) == '%') {
|
||||
m_textColor = Palette::PrimaryText;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user