1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-24 20:06:38 +02:00

core: fix value of buffer variable "num_history" when the value defined in option weechat.history.max_commands is reached

This commit is contained in:
Sébastien Helleu
2023-11-04 17:01:45 +01:00
parent 11d95fce11
commit 252240a1b1
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -27,6 +27,7 @@ New features::
Bug fixes::
* core: fix value of buffer variable "num_history" when the value defined in option weechat.history.max_commands is reached
* core: remove incorrect warning when binding keys kbd:[F10] to kbd:[F20] (issue #2039)
* core: call hook config when options are removed
* core: display an error with command `/history N` when N is not a valid integer
+1 -1
View File
@@ -88,7 +88,7 @@ gui_history_buffer_add (struct t_gui_buffer *buffer, const char *string)
free (buffer->last_history->text);
free (buffer->last_history);
buffer->last_history = ptr_history;
buffer->num_history++;
buffer->num_history--;
}
}
}