record screen layout when drawing
This commit is contained in:
parent
239afdfd25
commit
83a6c1a983
@ -147,6 +147,7 @@ int BufferPane::update_cursor_row(std::list<std::pair<int, Buffer::Iterator>> &
|
||||
|
||||
void BufferPane::draw()
|
||||
{
|
||||
m_screen_lines.clear();
|
||||
if (m_iterator->valid())
|
||||
{
|
||||
std::list<std::pair<int, Buffer::Iterator>> backward_lines;
|
||||
@ -168,6 +169,7 @@ void BufferPane::draw()
|
||||
}
|
||||
while (screen_row <= m_rows)
|
||||
{
|
||||
m_screen_lines.push_back(std::pair<int, Buffer::Iterator>(screen_row, i));
|
||||
screen_row += draw_buffer_line(screen_row, i);
|
||||
if (!i.go_next_line())
|
||||
{
|
||||
|
@ -61,6 +61,7 @@ protected:
|
||||
int m_cursor_screen_row;
|
||||
int m_cursor_virtual_column;
|
||||
std::shared_ptr<Buffer::Iterator> m_iterator;
|
||||
std::list<std::pair<int, Buffer::Iterator>> m_screen_lines;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user