Do not redraw screen on cursor move if the cursor didn't actually move
This commit is contained in:
parent
86246385d4
commit
a68ccb52e4
@ -250,26 +250,26 @@ void Window::handle_key(uint32_t scancode, uint32_t mod)
|
|||||||
|
|
||||||
void Window::cursor_left()
|
void Window::cursor_left()
|
||||||
{
|
{
|
||||||
m_cursor->go_left(1);
|
if (m_cursor->go_left(1))
|
||||||
redraw();
|
redraw();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Window::cursor_right()
|
void Window::cursor_right()
|
||||||
{
|
{
|
||||||
m_cursor->go_right(1);
|
if (m_cursor->go_right(1))
|
||||||
redraw();
|
redraw();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Window::cursor_up()
|
void Window::cursor_up()
|
||||||
{
|
{
|
||||||
m_cursor->go_up(1, m_cursor->column);
|
if (m_cursor->go_up(1, m_cursor->column))
|
||||||
redraw();
|
redraw();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Window::cursor_down()
|
void Window::cursor_down()
|
||||||
{
|
{
|
||||||
m_cursor->go_down(1, m_cursor->column);
|
if (m_cursor->go_down(1, m_cursor->column))
|
||||||
redraw();
|
redraw();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Window::scroll_down()
|
void Window::scroll_down()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user