Verified Commit f3d43ae3 authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

TerminalPainter: Pass nextPos to hasSameWidth

This avoids jumpy selections when the text contains both English and
non-English characters.

BUG: 446655
parent e54e87e6
Pipeline #106803 passed with stage
in 1 minute and 57 seconds
......@@ -112,7 +112,7 @@ void TerminalPainter::drawContents(Character *image,
const int nextPos = display->loc(x + len, y);
const Character next_char = image[nextPos];
if (!hasSameWidth(x + len) || !next_char.canBeGrouped(bidiEnabled, doubleWidth) || !char_value.hasSameAttributes(next_char)) {
if (!hasSameWidth(nextPos) || !next_char.canBeGrouped(bidiEnabled, doubleWidth) || !char_value.hasSameAttributes(next_char)) {
break;
}
......
Supports Markdown
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