diff finch/libgnt/gntentry.c @ 24498:2675fda76ddf

Do not alter the killring on delete-prev or delete-next (char) operations.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Thu, 27 Nov 2008 20:53:51 +0000
parents f658f9a84fe9
children e1c3a984e47a
line wrap: on
line diff
--- a/finch/libgnt/gntentry.c	Thu Nov 27 05:54:09 2008 +0000
+++ b/finch/libgnt/gntentry.c	Thu Nov 27 20:53:51 2008 +0000
@@ -365,7 +365,7 @@
 		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 @@
 		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));