diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2004-07-09 22:26:30 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2004-07-09 22:26:30 +0000 |
commit | dea586e5f1d2429c2409fbdc0ffd87db6881c895 (patch) | |
tree | b921e773bd3ac7bc719ab296537043bc0f90e102 /src/gui/curses | |
parent | e1afa31563fe2cc89f5ec44fed2b80d61991afcc (diff) | |
download | weechat-dea586e5f1d2429c2409fbdc0ffd87db6881c895.zip |
Fixed crash when opening second server window
Diffstat (limited to 'src/gui/curses')
-rw-r--r-- | src/gui/curses/gui-display.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/curses/gui-display.c b/src/gui/curses/gui-display.c index a1cd8c483..31d347a25 100644 --- a/src/gui/curses/gui-display.c +++ b/src/gui/curses/gui-display.c @@ -829,7 +829,6 @@ gui_draw_buffer_status (t_gui_buffer *buffer, int erase) COLOR_WIN_STATUS_DELIMITERS); wprintw (ptr_win->win_status, "] "); } - if (SERVER(ptr_win->buffer) && !CHANNEL(ptr_win->buffer)) { gui_window_set_color (ptr_win->win_status, @@ -846,7 +845,7 @@ gui_draw_buffer_status (t_gui_buffer *buffer, int erase) SERVER(ptr_win->buffer)->name); else wprintw (ptr_win->win_status, "(%s) ", - ptr_win->buffer->number, SERVER(ptr_win->buffer)->name); + SERVER(ptr_win->buffer)->name); } if (SERVER(ptr_win->buffer) && CHANNEL(ptr_win->buffer)) { @@ -897,7 +896,7 @@ gui_draw_buffer_status (t_gui_buffer *buffer, int erase) wprintw (ptr_win->win_status, _("%d:[not connected] "), ptr_win->buffer->number); } - + /* display list of other active windows (if any) with numbers */ if (hotlist) { @@ -1363,7 +1362,6 @@ gui_curses_resize_handler () /* TODO: manage when some windows are outside new term size */ for (ptr_win = gui_windows; ptr_win; ptr_win = ptr_win->next_window) { - wee_log_printf ("win_x = %d, win_width = %d, old_width = %d\n", ptr_win->win_x, ptr_win->win_width, old_width); if (ptr_win->win_x + ptr_win->win_width == old_width) ptr_win->win_width = new_width - ptr_win->win_x; if (ptr_win->win_y + ptr_win->win_height == old_height) |