diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2014-01-19 16:41:26 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2014-01-19 16:41:40 -0800 |
commit | d9d65577f4f2f7ca7b3866c10c44136c75d6e6ef (patch) | |
tree | 21e81ffee42e2a8d6f4ddb65e971419d4286543f /screen.h | |
parent | 808bc42f2a75e4af70ae992f6b7c1a4bf59eac50 (diff) |
Improved navigation of pager list. Added tests for it too.
Diffstat (limited to 'screen.h')
-rw-r--r-- | screen.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 { |