diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2004-07-06 19:54:31 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2004-07-06 19:54:31 +0000 |
commit | e1afa31563fe2cc89f5ec44fed2b80d61991afcc (patch) | |
tree | 77037683162f9ef568133d3fdf74d076fa19d908 /src | |
parent | 750a5cbc6d524c0ec2c28178e605756e603f6970 (diff) | |
download | weechat-e1afa31563fe2cc89f5ec44fed2b80d61991afcc.zip |
Fixed bug when closing window (new numbers for next buffers if any)
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/gui-common.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/gui-common.c b/src/gui/gui-common.c index 445eca13d..877ded5e4 100644 --- a/src/gui/gui-common.c +++ b/src/gui/gui-common.c @@ -349,6 +349,7 @@ void gui_buffer_free (t_gui_buffer *buffer) { t_gui_window *ptr_win; + t_gui_buffer *ptr_buffer; t_gui_line *ptr_line; int create_new; @@ -361,6 +362,12 @@ gui_buffer_free (t_gui_buffer *buffer) gui_switch_to_previous_buffer (ptr_win); } + /* decrease buffer number for all next buffers */ + for (ptr_buffer = buffer->next_buffer; ptr_buffer; ptr_buffer = ptr_buffer->next_buffer) + { + ptr_buffer->number--; + } + /* free lines and messages */ while (buffer->lines) { |