From f58dff62c7888ec00f0c10e27b46c1347ecb85d3 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sun, 26 Jan 2014 00:41:30 -0800 Subject: Beginnings of work for search field feature of new pager --- screen.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'screen.h') diff --git a/screen.h b/screen.h index 33eb58ab..0733b804 100644 --- a/screen.h +++ b/screen.h @@ -113,6 +113,12 @@ public: } return line_datas.at(idx); } + + line_t &insert_line_at_index(size_t idx) + { + assert(idx <= line_datas.size()); + return *line_datas.insert(line_datas.begin() + idx, line_t()); + } line_t &line(size_t idx) { -- cgit v1.2.3