1
0
mirror of https://github.com/irssi/irssi.git synced 2024-07-21 03:14:16 -04:00

now other than long nicks in NAMES list were displayed wrong. changed back

to old behaviour, but added a small kludge..


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@229 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-05-25 11:11:23 +00:00 committed by cras
parent 665963703b
commit 487da41745

View File

@ -80,7 +80,8 @@ static void display_sorted_nicks(CHANNEL_REC *channel, GSList *nicklist, gint it
str = g_string_new(NULL);
cols = max > 65 ? 1 : (65 / (max+3)); /* "[] " */
lines = items <= cols ? 1 : (items-(cols-1)) / cols;
lines = items <= cols ? 1 : items/cols + 1;
if (lines > items) lines = items;
last = NULL; linebuf = g_malloc(max+1); linebuf[max] = '\0';
for (line = 0, col = 0, skip = 1, tmp = nicklist; line < lines; last = rec, tmp = tmp->next)