variable rename
This commit is contained in:
parent
289af1b8c7
commit
21e65d95f9
@ -350,20 +350,20 @@ void Window::draw_buffer()
|
|||||||
{
|
{
|
||||||
update_cursor_row();
|
update_cursor_row();
|
||||||
int screen_row = m_cursor_row - m_cursor->column() / m_columns;
|
int screen_row = m_cursor_row - m_cursor->column() / m_columns;
|
||||||
GapBuffer::Cursor draw_cursor = *m_cursor;
|
GapBuffer::Cursor iter_cursor = *m_cursor;
|
||||||
draw_cursor.go_start_of_line();
|
iter_cursor.go_start_of_line();
|
||||||
while ((screen_row > 0) && draw_cursor.go_up(0u))
|
while ((screen_row > 0) && iter_cursor.go_up(0u))
|
||||||
{
|
{
|
||||||
GapBuffer::Cursor cursor2 = draw_cursor;
|
GapBuffer::Cursor cursor2 = iter_cursor;
|
||||||
cursor2.go_end_of_line(false);
|
cursor2.go_end_of_line(false);
|
||||||
screen_row -= (1 + cursor2.column() / m_columns);
|
screen_row -= (1 + cursor2.column() / m_columns);
|
||||||
}
|
}
|
||||||
while (screen_row < m_rows)
|
while (screen_row < m_rows)
|
||||||
{
|
{
|
||||||
draw_buffer_line(screen_row, draw_cursor);
|
draw_buffer_line(screen_row, iter_cursor);
|
||||||
draw_cursor.go_end_of_line(false);
|
iter_cursor.go_end_of_line(false);
|
||||||
screen_row += (1 + draw_cursor.column() / m_columns);
|
screen_row += (1 + iter_cursor.column() / m_columns);
|
||||||
if (!draw_cursor.go_down(0u))
|
if (!iter_cursor.go_down(0u))
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user