summaryrefslogtreecommitdiff
path: root/src/fe-text/gui-readline.c
diff options
context:
space:
mode:
authorEmanuele Giaquinta <exg@irssi.org>2007-05-25 22:21:39 +0000
committerexg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564>2007-05-25 22:21:39 +0000
commit8a9da9cf2de8189fd68be746ba55fa85b8f2b424 (patch)
tree42622f7706ac8691795682f425f161ae151d805a /src/fe-text/gui-readline.c
parentceea629e3ea0a3c8f7befe55e7afa47daa07fdd7 (diff)
downloadirssi-8a9da9cf2de8189fd68be746ba55fa85b8f2b424.zip
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
Diffstat (limited to 'src/fe-text/gui-readline.c')
-rw-r--r--src/fe-text/gui-readline.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fe-text/gui-readline.c b/src/fe-text/gui-readline.c
index 06f61e4b..78ebd351 100644
--- a/src/fe-text/gui-readline.c
+++ b/src/fe-text/gui-readline.c
@@ -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);
}
}