readline_backward_kill_word() makes a stop at the "command" character
For example, "/qu^W" will display "/".
--- 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;