diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-11-04 00:49:21 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-11-04 00:49:21 -0500 |
commit | ea55c107307ef8bca11accc09ff2c47c74745cb1 (patch) | |
tree | 395f68717c932559f0d027d73dd226e0c380c135 /src/grid.rs | |
parent | 7958770a507d17e4beed17009206322c6d8fb7c0 (diff) | |
download | vt100-rust-ea55c107307ef8bca11accc09ff2c47c74745cb1.tar.gz vt100-rust-ea55c107307ef8bca11accc09ff2c47c74745cb1.zip |
more useful contents/contents_formatted behavior
Diffstat (limited to 'src/grid.rs')
-rw-r--r-- | src/grid.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/grid.rs b/src/grid.rs index cfb04de..20fe17f 100644 --- a/src/grid.rs +++ b/src/grid.rs @@ -117,7 +117,7 @@ impl Grid { for row in self.rows().skip(row_start).take(row_end - row_start + 1) { contents += &row.contents(col_start, col_end); } - contents + contents.trim_end().to_string() } pub fn contents_formatted( @@ -137,7 +137,7 @@ impl Grid { contents += new_contents; prev_attrs = *new_attrs; } - contents + contents.trim_end().to_string() } pub fn erase_all(&mut self) { |