aboutsummaryrefslogtreecommitdiffhomepage
path: root/screen.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-01-19 16:41:26 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-01-19 16:41:40 -0800
commitd9d65577f4f2f7ca7b3866c10c44136c75d6e6ef (patch)
tree21e81ffee42e2a8d6f4ddb65e971419d4286543f /screen.h
parent808bc42f2a75e4af70ae992f6b7c1a4bf59eac50 (diff)
Improved navigation of pager list. Added tests for it too.
Diffstat (limited to 'screen.h')
-rw-r--r--screen.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/screen.h b/screen.h
index cfc12ba3..33eb58ab 100644
--- a/screen.h
+++ b/screen.h
@@ -42,6 +42,17 @@ struct line_t
text.push_back(txt);
colors.push_back(color);
}
+
+ void append(const wchar_t *txt, highlight_spec_t color)
+ {
+ for (size_t i=0; txt[i]; i++)
+ {
+ text.push_back(txt[i]);
+ colors.push_back(color);
+ }
+ }
+
+
size_t size(void) const
{