prevent crashing when selecting invalid unicode character.
author Kurt Hindenburg
()
committer Kurt Hindenburg
()
commit 4ce0647eaae3cc1e486955232e9dc52c43538233
tree 24f6681aed54b2d1b073fe25df7345a940c4aa5e
parent 8327db87ffac7a5e48792bc80e87a1fb16a74e30
prevent crashing when selecting invalid unicode character.

Konsole goes into an infinite loop and will eventually crash due to
memory. On an invalid unicode char the width is 0 so the for loop never
exits.
A better patch by Francesco Cecconi <francesco.cecconi@gmail.com>

BUG: 303390
(cherry picked from commit 69b53c00ae53d6a066292d3f1a96599a75eff618)
src/TerminalCharacterDecoder.cpp