1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Remove workaround no longer needed.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4803 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Emanuele Giaquinta 2008-04-11 21:27:12 +00:00 committed by exg
parent 0b9a3f4aef
commit 2aac604293

View File

@ -88,14 +88,8 @@ static void mode_add_arg(GString *str, int pos, int updating, const char *arg)
g_string_erase(str, pos, (int) (p-str->str)-pos); g_string_erase(str, pos, (int) (p-str->str)-pos);
} }
/* .. GLib shouldn't fail when inserting at the end of the string */ g_string_insert_c(str, pos, ' ');
if (pos == str->len) { g_string_insert(str, pos+1, arg);
g_string_append_c(str, ' ');
g_string_append(str, arg);
} else {
g_string_insert_c(str, pos, ' ');
g_string_insert(str, pos+1, arg);
}
} }
/* Add mode character to list sorted alphabetically */ /* Add mode character to list sorted alphabetically */