# HG changeset patch # User Sadrul Habib Chowdhury # Date 1163619529 0 # Node ID f16e056f816dafa1fde0ed24ec3be3ec36beddcc # Parent cfb736e4a2c4d92d509f741d5924c7a5cab093bc [gaim-migrate @ 17752] Warmenhoved patch #1594991 (make del_prev_word work more like in emacs) from Trevor Caira. committer: Tailor Script diff -r cfb736e4a2c4 -r f16e056f816d COPYRIGHT --- a/COPYRIGHT Wed Nov 15 19:12:09 2006 +0000 +++ b/COPYRIGHT Wed Nov 15 19:38:49 2006 +0000 @@ -43,6 +43,7 @@ Philip Brown Sean Burke Thomas Butter +Trevor Caira Andrea Canciani Damien Carbery Michael Carlson diff -r cfb736e4a2c4 -r f16e056f816d console/libgnt/gntentry.c --- a/console/libgnt/gntentry.c Wed Nov 15 19:12:09 2006 +0000 +++ b/console/libgnt/gntentry.c Wed Nov 15 19:38:49 2006 +0000 @@ -338,6 +338,8 @@ begin_word(const char *text, const char *begin) { char ch; + while (text > begin && (isspace(*text) || !*text)) + text--; ch = *text; #define SAME(a,b) ((isalpha(a) && isalpha(b)) || (isdigit(a) && isdigit(b)) || (isspace(a) && isspace(b))) while (--text >= begin) { @@ -563,7 +565,7 @@ gnt_bindable_class_register_action(bindable, "delete-end", del_to_end, GNT_KEY_CTRL_K, NULL); gnt_bindable_class_register_action(bindable, "delete-prev-word", del_prev_word, - NULL, NULL); + GNT_KEY_CTRL_W, NULL); #if 0 gnt_bindable_class_register_action(bindable, "delete-next-word", del_next_word, NULL, 1, NULL);