pidgin: 46942a88: Do not alter the killring on delete-prev...

sadrul at pidgin.im sadrul at pidgin.im
Thu Nov 27 15:55:26 EST 2008


-----------------------------------------------------------------
Revision: 46942a88da5d64334f6d6897ced4e6b8fb88fb93
Ancestor: 4cc0bbe98be861a279e3b1fd97a3b4d491dec519
Author: sadrul at pidgin.im
Date: 2008-11-27T20:53:51
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/46942a88da5d64334f6d6897ced4e6b8fb88fb93

Modified files:
        finch/libgnt/gntentry.c

ChangeLog: 

Do not alter the killring on delete-prev or delete-next (char) operations.

-------------- next part --------------
============================================================
--- finch/libgnt/gntentry.c	3bf22c4fe0176fc1f791a166bf7b5292ff51521e
+++ finch/libgnt/gntentry.c	5e7c857db09443af00f74b4a7197ecd3c671b9a5
@@ -365,7 +365,7 @@ backspace(GntBindable *bind, GList *null
 		return TRUE;
 
 	len = entry->cursor - g_utf8_find_prev_char(entry->start, entry->cursor);
-	update_kill_ring(entry, ENTRY_DEL_BWD_CHAR, entry->cursor, -len);
+	update_kill_ring(entry, ENTRY_JAIL, entry->cursor, -len);
 	entry->cursor -= len;
 
 	memmove(entry->cursor, entry->cursor + len, entry->end - entry->cursor);
@@ -391,7 +391,7 @@ delkey(GntBindable *bind, GList *null)
 		return FALSE;
 
 	len = g_utf8_find_next_char(entry->cursor, NULL) - entry->cursor;
-	update_kill_ring(entry, ENTRY_DEL_FWD_CHAR, entry->cursor, len);
+	update_kill_ring(entry, ENTRY_JAIL, entry->cursor, len);
 	memmove(entry->cursor, entry->cursor + len, entry->end - entry->cursor - len + 1);
 	entry->end -= len;
 	entry_redraw(GNT_WIDGET(entry));


More information about the Commits mailing list