changeset 1280:8b621f980321

readline_backward_kill_word() makes a stop at the "command" character For example, "/qu^W" will display "/".
author Mikael Berthe <mikael@lilotux.net>
date Sat, 25 Aug 2007 12:25:44 +0200
parents 8bbc764139ef
children b1be0c6862d4
files mcabber/src/screen.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;