Add function to delete the whole cell under the cursor and use it for

delete_character.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4521 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Emanuele Giaquinta 2007-05-25 22:21:39 +00:00 committed by exg
commit 8a9da9cf2d
3 changed files with 21 additions and 2 deletions

View file

@ -697,8 +697,7 @@ static void key_upcase_word(void)
static void key_delete_character(void)
{
if (gui_entry_get_pos(active_entry) < active_entry->text_len) {
gui_entry_move_pos(active_entry, 1);
gui_entry_erase(active_entry, 1, FALSE);
gui_entry_erase_cell(active_entry);
}
}