# HG changeset patch # User Mikael Berthe # Date 1188037544 -7200 # Node ID 8b621f980321d3eb678ed90f33e421bb4b45ce99 # Parent 8bbc764139efb8bad475e91866ffdf2b4070d937 readline_backward_kill_word() makes a stop at the "command" character For example, "/qu^W" will display "/". diff -r 8bbc764139ef -r 8b621f980321 mcabber/src/screen.c --- a/mcabber/src/screen.c Sat Aug 25 12:05:12 2007 +0200 +++ b/mcabber/src/screen.c Sat Aug 25 12:25:44 2007 +0200 @@ -2633,9 +2633,12 @@ } else spaceallowed = 0; } - if (c != inputLine || iswblank(get_char(c))) + if (c == inputLine && *c == COMMAND_CHAR && old != c+1) { + c = next_char(c); + } else if (c != inputLine || iswblank(get_char(c))) { if ((c < prev_char(ptr_inputline, inputLine)) && (!iswalnum(get_char(c)))) c = next_char(c); + } // Modify the line ptr_inputline = c;