summaryrefslogtreecommitdiff
path: root/src/gui/curses
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2005-05-18 19:03:34 +0000
committerSebastien Helleu <flashcode@flashtux.org>2005-05-18 19:03:34 +0000
commite7041a467be1861954ae69397bee19a8d998815b (patch)
tree96bff3ad8fb689ea4e2197bf4d47de137cd04c99 /src/gui/curses
parentee2121b917ac3bf894f014458e9d9306cc0e4d30 (diff)
downloadweechat-e7041a467be1861954ae69397bee19a8d998815b.zip
Added "++++" at bottom of nicklist if end of nicklist is not displayed
Diffstat (limited to 'src/gui/curses')
-rw-r--r--src/gui/curses/gui-display.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/gui/curses/gui-display.c b/src/gui/curses/gui-display.c
index 6ef9765ae..cd5d39556 100644
--- a/src/gui/curses/gui-display.c
+++ b/src/gui/curses/gui-display.c
@@ -962,7 +962,7 @@ gui_draw_buffer_nick (t_gui_buffer *buffer, int erase)
(cfg_look_nicklist_position == CFG_LOOK_NICKLIST_BOTTOM))
nicks_displayed = (ptr_win->win_width / (max_length + 2)) * (ptr_win->win_height - 1);
else
- nicks_displayed = ptr_win->win_height;
+ nicks_displayed = ptr_win->win_nick_height;
ptr_nick = CHANNEL(buffer)->nicks;
for (i = 0; i < ptr_win->win_nick_start; i++)
@@ -988,7 +988,8 @@ gui_draw_buffer_nick (t_gui_buffer *buffer, int erase)
x = column;
break;
}
- if ((i == 0) && (ptr_win->win_nick_start > 0))
+ if ( ((i == 0) && (ptr_win->win_nick_start > 0))
+ || ((i == nicks_displayed - 1) && (ptr_nick->next_nick)) )
{
gui_window_set_color (ptr_win->win_nick, COLOR_WIN_NICK_MORE);
j = (max_length + 1) >= 4 ? 4 : max_length + 1;
@@ -1928,12 +1929,13 @@ gui_nick_move_page_down (t_gui_window *window)
if (gui_buffer_has_nicklist (window->buffer))
{
- if (window->win_nick_start + window->win_nick_height < CHANNEL(window->buffer)->nicks_count)
+ if ((CHANNEL(window->buffer)->nicks_count > window->win_nick_height)
+ && (window->win_nick_start + window->win_nick_height - 1 < CHANNEL(window->buffer)->nicks_count))
{
if (window->win_nick_start == 0)
- window->win_nick_start += window->win_nick_height;
- else
window->win_nick_start += (window->win_nick_height - 1);
+ else
+ window->win_nick_start += (window->win_nick_height - 2);
gui_draw_buffer_nick (window->buffer, 1);
}
}