Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Konsole
Commits
645b92a5
Commit
645b92a5
authored
Nov 21, 2021
by
Waqar Ahmed
Committed by
Tomaz Canabrava
Nov 22, 2021
Browse files
Fix possible infinite loop
parent
fd689b3a
Pipeline
#99879
passed with stage
in 1 minute and 51 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
src/terminalDisplay/TerminalPainter.cpp
View file @
645b92a5
...
...
@@ -147,6 +147,9 @@ void TerminalPainter::drawContents(Character *image,
if
(
next_char
.
character
==
' '
&&
char_value
.
hasSameColors
(
next_char
)
&&
char_value
.
hasSameRendition
(
next_char
))
{
// univec intentionally not modified - trailing spaces are meaningless
len
++
;
}
else
{
// break otherwise, we don't want to be stuck in this loop
break
;
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment