1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 13:56:37 +02:00

core: add variable "old_full_name" in buffer, set before the buffer is renamed (issue #1428)

This commit is contained in:
Sébastien Helleu
2020-01-12 16:57:08 +01:00
parent 4f9c4fecd3
commit 1fac6fd404
4 changed files with 29 additions and 3 deletions
+6
View File
@@ -446,6 +446,12 @@ upgrade_weechat_read_buffer (struct t_infolist *infolist)
/* full name */
gui_buffer_build_full_name (ptr_buffer);
/* old full name */
if (ptr_buffer->old_full_name)
free (ptr_buffer->old_full_name);
str = infolist_string (infolist, "old_full_name");
ptr_buffer->old_full_name = (str) ? strdup (str) : NULL;
/* short name */
if (ptr_buffer->short_name)
free (ptr_buffer->short_name);