changeset 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 a5acc2a1af53
children 990cad5123f3
files mcabber/mcabber/screen.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);
   }