From: <sa...@us...> - 2006-11-15 19:38:55
|
Revision: 17752 http://svn.sourceforge.net/gaim/?rev=17752&view=rev Author: sadrul Date: 2006-11-15 11:38:49 -0800 (Wed, 15 Nov 2006) Log Message: ----------- Warmenhoved patch #1594991 (make del_prev_word work more like in emacs) from Trevor Caira. Modified Paths: -------------- trunk/COPYRIGHT trunk/console/libgnt/gntentry.c Modified: trunk/COPYRIGHT =================================================================== --- trunk/COPYRIGHT 2006-11-15 19:12:09 UTC (rev 17751) +++ trunk/COPYRIGHT 2006-11-15 19:38:49 UTC (rev 17752) @@ -43,6 +43,7 @@ Philip Brown Sean Burke Thomas Butter +Trevor Caira Andrea Canciani Damien Carbery Michael Carlson Modified: trunk/console/libgnt/gntentry.c =================================================================== --- trunk/console/libgnt/gntentry.c 2006-11-15 19:12:09 UTC (rev 17751) +++ trunk/console/libgnt/gntentry.c 2006-11-15 19:38:49 UTC (rev 17752) @@ -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); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |