Commit 86085d4a authored by Mariusz Glebocki's avatar Mariusz Glebocki Committed by Kurt Hindenburg
Browse files

Allow for grouping extended characters

https://invent.kde.org/mglebocki/konsole complex-scripts-support
CCBUG: 401094
parent 94ff722f
......@@ -1609,7 +1609,10 @@ void TerminalDisplay::drawContents(QPainter& paint, const QRect& rect)
return (_image[characterLoc].character == 0) == doubleWidth;
};
const auto canBeGrouped = [&](int column) {
return _image[loc(column, y)].character <= 0x7e || rtl || malayalam(column);
return _image[loc(column, y)].character <= 0x7e
|| (_image[loc(column, y)].rendition & RE_EXTENDED_CHAR)
|| rtl
|| malayalam(column);
};
if (canBeGrouped(x)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment