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.
--- 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);
}