comparison mcabber/mcabber/screen.c @ 2072:0722fe4b7580

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.
author Mikael Berthe <mikael@lilotux.net>
date Sun, 29 Sep 2013 10:24:24 +0200
parents a60b933d04cc
children e04b6dfbb054
comparison
equal deleted inserted replaced
2071:a5acc2a1af53 2072:0722fe4b7580
3439 } else spaceallowed = 0; 3439 } else spaceallowed = 0;
3440 } 3440 }
3441 3441
3442 if (c == inputLine && *c == COMMAND_CHAR && old != c+1) { 3442 if (c == inputLine && *c == COMMAND_CHAR && old != c+1) {
3443 c = next_char(c); 3443 c = next_char(c);
3444 } else if (c != inputLine || iswblank(get_char(c))) { 3444 } else if (c != inputLine || (iswblank(get_char(c)) && !spaceallowed)) {
3445 if ((c < prev_char(ptr_inputline, inputLine)) && (!iswalnum(get_char(c)))) 3445 if ((c < prev_char(ptr_inputline, inputLine)) && (!iswalnum(get_char(c))))
3446 c = next_char(c); 3446 c = next_char(c);
3447 } 3447 }
3448 3448
3449 // Modify the line 3449 // Modify the line