mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 20:00:23 +02: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:
parent
0b9a3f4aef
commit
2aac604293
1 changed files with 2 additions and 8 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
/* .. GLib shouldn't fail when inserting at the end of the string */
|
||||
if (pos == str->len) {
|
||||
g_string_append_c(str, ' ');
|
||||
g_string_append(str, arg);
|
||||
} else {
|
||||
g_string_insert_c(str, pos, ' ');
|
||||
g_string_insert(str, pos+1, arg);
|
||||
}
|
||||
g_string_insert_c(str, pos, ' ');
|
||||
g_string_insert(str, pos+1, arg);
|
||||
}
|
||||
|
||||
/* Add mode character to list sorted alphabetically */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue