summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-04-24 10:25:45 +0200
committerSebastien Helleu <flashcode@flashtux.org>2011-04-24 10:25:45 +0200
commit175a4e2fa5a751a10e783d33e4c4bec66b2a9a3a (patch)
tree955c7cdb349c2eefc59fda60e47a2803a71fb6a0 /src
parent0b0626d98b753a53cb25bbea4b513c7402d3f945 (diff)
downloadweechat-175a4e2fa5a751a10e783d33e4c4bec66b2a9a3a.zip
core: recalculate buffer_max_length when buffer short name is changed (patch #7441)
Diffstat (limited to 'src')
-rw-r--r--src/gui/gui-buffer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/gui-buffer.c b/src/gui/gui-buffer.c
index 4a4fc674c..40961501a 100644
--- a/src/gui/gui-buffer.c
+++ b/src/gui/gui-buffer.c
@@ -898,6 +898,9 @@ gui_buffer_set_short_name (struct t_gui_buffer *buffer, const char *short_name)
if (buffer->short_name)
free (buffer->short_name);
buffer->short_name = strdup (short_name);
+ if (buffer->mixed_lines)
+ gui_line_compute_buffer_max_length (buffer, buffer->mixed_lines);
+ gui_buffer_ask_chat_refresh (buffer, 1);
hook_signal_send ("buffer_renamed",
WEECHAT_HOOK_SIGNAL_POINTER, buffer);