add a piece table insertion test

This commit is contained in:
josh committed 2016-09-25 23:01:59 -04:00
1 parent bc4c5b5c98
commit c2c0d6f042
4 files changed
+86

No files matched your search

+9
View File
@@ -268,6 +268,9 @@ void Window::handle_key(uint32_t scancode, uint32_t mod)
case SDL_SCANCODE_L:
cursor_move(CURSOR_RIGHT);
break;
case SDL_SCANCODE_P:
insertion_test();
break;
}
}
@@ -521,3 +524,9 @@ void Window::draw_status_bar()
x += m_font.get_advance();
}
}
void Window::insertion_test()
{
m_buffer->piece_table->insertion_test(*m_cursor);
redraw();
}
+1
View File
@@ -42,6 +42,7 @@ protected:
void update_cursor_row(int cursor_row);
void draw_rect(int x, int y, int width, int height, float r, float g, float b, float a);
void draw_status_bar();
void insertion_test();
SDL_Window * m_window;
bool m_exit_requested;