From 7a0b5aefeca888f90633cf78f6eec702e21217e2 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Mon, 16 Mar 2026 06:37:32 -0400 Subject: Fix ^W so it deletes the space it starts out on, if it is one (reported by TheDoctor). --- src/edbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/edbox.c b/src/edbox.c index f2b309f..6ac1e7c 100644 --- a/src/edbox.c +++ b/src/edbox.c @@ -96,7 +96,7 @@ static void backspace(void) { static void word_left(char del) { if(!edbox_pos) return; - edbox_pos--; + if(!del) edbox_pos--; while(edbox_pos && edit_box[edbox_pos] == ' ') { if(del) del_char(); edbox_pos--; -- cgit v1.2.3