ctrl-w deletes one word - irc - Unnamed repository; edit this file 'description' to name the repository.
 (HTM) git clone git://vernunftzentrum.de/irc.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
       ---
 (DIR) commit 48569cdb36dd1a71f3221390b8f25e2ec62fecd7
 (DIR) parent 294e0d2522d6044bf68dc232f87d00703c756d17
 (HTM) Author: xcko shrdlu <xcko@bitmessage.ch>
       Date:   Sun, 13 Nov 2016 07:39:39 +0000
       
       ctrl-w deletes one word
       
       Diffstat:
         irc.c                               |      12 ++++++++++++
       
       1 file changed, 12 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/irc.c b/irc.c
       @@ -685,6 +685,18 @@ tgetch(void)
                        dirty = --cu;
                        len--;
                        break;
       +        case CTRL('w'):
       +                if (cu == 0)
       +                        break;
       +                i = 1;
       +                while (l[cu - i] == ' ' && cu - i != 0) i++;
       +                while (l[cu - i] != ' ' && cu - i != 0) i++;
       +                if (cu - i != 0) i--;
       +                memmove(&l[cu - i], &l[cu], len - cu);
       +                cu -= i;
       +                dirty = cu;
       +                len -= i;
       +                break;
                case '\n':
                        l[len] = 0;
                        uparse(l);