From b91476f24721e7d5831b28478aa6ebc3201f6607 Mon Sep 17 00:00:00 2001 From: kamkow1 Date: Thu, 5 Mar 2026 18:17:26 +0100 Subject: [PATCH] CE edit handle KB_HOME and KB_END --- ce/edit.c | 6 ++++++ 1 file changed, 6 insertions(+) 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);