Commit 9541d2eb authored by Kurt Hindenburg's avatar Kurt Hindenburg
Browse files

Use unique variable name to avoid shadowing

parent 7360503f
Pipeline #182804 passed with stage
in 2 minutes and 49 seconds
......@@ -149,8 +149,8 @@ void TerminalPainter::drawContents(Character *image,
// univec intentionally not modified - trailing spaces are meaningless
len++;
while (isInsideDrawArea(x + len)) {
const Character next_char = image[m_parentDisplay->loc(x + len, y)];
if (next_char.character == ' ' && char_value.hasSameColors(next_char) && char_value.hasSameRendition(next_char)) {
const Character next_char_gp = image[m_parentDisplay->loc(x + len, y)];
if (next_char_gp.character == ' ' && char_value.hasSameColors(next_char_gp) && char_value.hasSameRendition(next_char_gp)) {
len++;
} else {
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