diff --git a/ce/edit.c b/ce/edit.c index 2101863..875aac6 100644 --- a/ce/edit.c +++ b/ce/edit.c @@ -195,6 +195,12 @@ void edit_start (const char* text) { editor.cursor.col = len; } } break; + case KB_HOME: + editor.cursor.col = 0; + break; + case KB_END: + editor.cursor.col = gapbuffer_length (&editor.current_line->gb); + break; default: if (isprint (ch)) { gapbuffer_insert (&wrealloc, NULL, &editor.current_line->gb, ch);