aboutsummaryrefslogtreecommitdiff
path: root/src/edbox.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-03-16 06:37:32 -0400
committerB. Watson <urchlay@slackware.uk>2026-03-16 06:37:32 -0400
commit7a0b5aefeca888f90633cf78f6eec702e21217e2 (patch)
tree012bcb92930a3ba3dca0684d0fa5412ebd697121 /src/edbox.c
parentaa80b9e5b46dda31b091314a2a05f4ad2094ed1c (diff)
downloadfujinet-chat-7a0b5aefeca888f90633cf78f6eec702e21217e2.tar.gz
Fix ^W so it deletes the space it starts out on, if it is one (reported by TheDoctor).
Diffstat (limited to 'src/edbox.c')
-rw-r--r--src/edbox.c2
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--;