delete_next_word key implemented, patch by Tinuk

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1311 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-03-03 18:04:10 +00:00 committed by cras
commit 88094fa9f2
3 changed files with 21 additions and 2 deletions

View file

@ -183,6 +183,24 @@ void gui_entry_erase_word(void)
entry_update();
}
void gui_entry_erase_next_word(void)
{
int to = pos;
if (pos == entry->len) return;
while (entry->str[to] == ' ' && to < entry->len)
to++;
while (entry->str[to] != ' ' && to < entry->len)
to++;
g_string_erase(entry, pos, to - pos);
entry_screenpos();
entry_update();
}
int gui_entry_get_pos(void)
{
return pos;