qulogic/libgnt

Parents 8dfdd6b5f547
Children af17fbfc59fd
Do not alter the killring on delete-prev or delete-next (char) operations.
  • +2 -2
    gntentry.c
  • --- a/gntentry.c Thu Nov 27 05:54:09 2008 +0000
    +++ b/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));