diff options
| author | B. Watson <urchlay@slackware.uk> | 2026-03-16 06:37:32 -0400 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2026-03-16 06:37:32 -0400 |
| commit | 7a0b5aefeca888f90633cf78f6eec702e21217e2 (patch) | |
| tree | 012bcb92930a3ba3dca0684d0fa5412ebd697121 | |
| parent | aa80b9e5b46dda31b091314a2a05f4ad2094ed1c (diff) | |
| download | fujinet-chat-7a0b5aefeca888f90633cf78f6eec702e21217e2.tar.gz | |
Fix ^W so it deletes the space it starts out on, if it is one (reported by TheDoctor).
| -rw-r--r-- | src/edbox.c | 2 |
1 files changed, 1 insertions, 1 deletions
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--; |
