# HG changeset patch # User Mikael Berthe # Date 1380443064 -7200 # Node ID 0722fe4b758038a7442f72f57983c954ef578082 # Parent a5acc2a1af5315bf288d46a025651fdc638b2790 Small fix for readline_backward_kill_word() Fix readline_backward_kill_word() when the beginning of the line contain several space characters. E.g. ctrl-w did not erase the first space. Thanks to Cae for the report. diff -r a5acc2a1af53 -r 0722fe4b7580 mcabber/mcabber/screen.c --- a/mcabber/mcabber/screen.c Sat Sep 14 00:29:20 2013 +0200 +++ b/mcabber/mcabber/screen.c Sun Sep 29 10:24:24 2013 +0200 @@ -3441,7 +3441,7 @@ if (c == inputLine && *c == COMMAND_CHAR && old != c+1) { c = next_char(c); - } else if (c != inputLine || iswblank(get_char(c))) { + } else if (c != inputLine || (iswblank(get_char(c)) && !spaceallowed)) { if ((c < prev_char(ptr_inputline, inputLine)) && (!iswalnum(get_char(c)))) c = next_char(c); }