aboutsummaryrefslogtreecommitdiffhomepage
path: root/screen.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-01-13 16:41:22 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-01-13 16:41:22 -0800
commit899dafb33fec62ed9258f2b65e2330a2cd483ab5 (patch)
treeb4efbfe1fa46e955771c62d0680f59667511ced2 /screen.h
parent104cf87b895d11202e70268dc9bc88b07c204e09 (diff)
Migrating new pager implementation into a class. Further work on
constructing a screen_data_t from it.
Diffstat (limited to 'screen.h')
-rw-r--r--screen.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/screen.h b/screen.h
index d3676a0b..8e23002e 100644
--- a/screen.h
+++ b/screen.h
@@ -54,6 +54,12 @@ struct line_t
{
return colors.at(idx);
}
+
+ void append_line(const line_t &line)
+ {
+ text.insert(text.end(), line.text.begin(), line.text.end());
+ colors.insert(colors.end(), line.colors.begin(), line.colors.end());
+ }
};