Don't cross hard newlines looking for a base char

Combining characters could end up combining with an unrelated character
from the previous line.  Now they just disappear, without messing with
the display of unrelated characters.
wilder
Luis Javier Merino Morán 4 years ago committed by Tomaz Canabrava
parent cb1e04a05e
commit e7e901003d
  1. 2
      src/Screen.cpp

@ -928,7 +928,7 @@ void Screen::displayCharacter(uint c)
do {
if (charToCombineWithX > 0) {
--charToCombineWithX;
} else if (charToCombineWithY > 0) { // Try previous line
} else if (charToCombineWithY > 0 && _lineProperties.at(charToCombineWithY - 1) & LINE_WRAPPED) { // Try previous line
--charToCombineWithY;
charToCombineWithX = _screenLines.at(charToCombineWithY).length() - 1;
} else {

Loading…
Cancel
Save