draw last character of line
This commit is contained in:
parent
21e65d95f9
commit
ddbd78b5be
@ -373,7 +373,7 @@ void Window::draw_buffer()
|
|||||||
void Window::draw_buffer_line(int screen_row, const GapBuffer::Cursor & cursor)
|
void Window::draw_buffer_line(int screen_row, const GapBuffer::Cursor & cursor)
|
||||||
{
|
{
|
||||||
GapBuffer::Cursor iter_cursor = cursor;
|
GapBuffer::Cursor iter_cursor = cursor;
|
||||||
while (!iter_cursor.is_end_of_line(false))
|
while (!iter_cursor.is_end_of_line(true))
|
||||||
{
|
{
|
||||||
int draw_row = screen_row + (iter_cursor.column() / m_columns);
|
int draw_row = screen_row + (iter_cursor.column() / m_columns);
|
||||||
if (draw_row < 0)
|
if (draw_row < 0)
|
||||||
@ -388,7 +388,7 @@ void Window::draw_buffer_line(int screen_row, const GapBuffer::Cursor & cursor)
|
|||||||
{
|
{
|
||||||
m_gl->draw_character(x, y, c, m_font);
|
m_gl->draw_character(x, y, c, m_font);
|
||||||
}
|
}
|
||||||
iter_cursor.go_right(false);
|
iter_cursor.go_right(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user