ui: don't print Carriage Return

This commit is contained in:
Manos Pitsidianakis 2019-04-04 16:37:17 +03:00
parent 2a93463f74
commit 92f42ad8fa
No known key found for this signature in database
GPG Key ID: 73627C2F690DF710

View File

@ -723,6 +723,9 @@ pub fn write_string_to_grid(
return (x, y); return (x, y);
} }
'char: for c in s.chars() { 'char: for c in s.chars() {
if c == '\r' {
continue;
}
grid[(x, y)].set_ch(c); grid[(x, y)].set_ch(c);
grid[(x, y)].set_fg(fg_color); grid[(x, y)].set_fg(fg_color);
grid[(x, y)].set_bg(bg_color); grid[(x, y)].set_bg(bg_color);